qDebug()<<"Eror, trying to program over a non serial link. This should not happen";
return;
}
if(!(QMessageBox::question(this,"WARNING","You are about to upload new firmware to your board. This will disconnect you if you are currently connected. Be sure the MAV is on the ground, and connected over USB/Serial link.\n\nDo you wish to proceed?",QMessageBox::Yes,QMessageBox::No)==QMessageBox::Yes))
{
return;
}
m_detectedComPort=link->getPortName();
link->requestReset();
foundconnected=true;
link->disconnect();
link->wait(1000);// Wait 1 second for it to disconnect.
}
}
if(!foundconnected)
{
QMessageBox::information(0,"Error","You must be connected to a MAV over serial link to flash firmware. Please connect to a MAV then try again");