diff --git a/ground/openpilotgcs/src/plugins/uploader/op_dfu.cpp b/ground/openpilotgcs/src/plugins/uploader/op_dfu.cpp index a2cc5a50c..921473b7e 100644 --- a/ground/openpilotgcs/src/plugins/uploader/op_dfu.cpp +++ b/ground/openpilotgcs/src/plugins/uploader/op_dfu.cpp @@ -524,19 +524,15 @@ int DFUObject::JumpToApp(bool safeboot, bool erase) buf[5] = 0; buf[6] = 0; buf[7] = 0; - if (safeboot) - { + if (safeboot) { /* force system to safe boot mode (hwsettings == defaults) */ buf[8] = 0x5A; buf[9] = 0xFE; - } - else - { + } else { buf[8] = 0; buf[9] = 0; } - if(erase) - { + if (erase) { // force data flash clear buf[10] = 0x00; buf[11] = 0x00; diff --git a/ground/openpilotgcs/src/plugins/uploader/uploader.ui b/ground/openpilotgcs/src/plugins/uploader/uploader.ui index c07798b98..6f25c8191 100644 --- a/ground/openpilotgcs/src/plugins/uploader/uploader.ui +++ b/ground/openpilotgcs/src/plugins/uploader/uploader.ui @@ -35,7 +35,7 @@ through serial or USB) - false + true Boots the system. @@ -53,7 +53,7 @@ menu on the right. - false + true Boots the system into safe mode (ie. default HwSettings). @@ -71,7 +71,7 @@ menu on the right. - false + true <html><head/><body><p>Reboot the board and clear its settings memory.</p><p> Useful if the board cannot boot properly.</p><p> Blue led starts blinking quick for 20-30 seconds than the board will start normally</p><p><br/></p><p>If telemetry is not running, select the link using the dropdown</p><p>menu on the right.</p><p>PLEASE NOTE: Supported with bootloader versions 4.0 and earlier</p></body></html> diff --git a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp index 2db6d0b34..41216fb9a 100755 --- a/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp +++ b/ground/openpilotgcs/src/plugins/uploader/uploadergadgetwidget.cpp @@ -64,6 +64,8 @@ UploaderGadgetWidget::UploaderGadgetWidget(QWidget *parent) : QWidget(parent) rbi.addFile(QString(":uploader/images/view-refresh.svg")); m_config->refreshPorts->setIcon(rbi); + bootButtonsSetEnable(false); + connect(m_config->refreshPorts, SIGNAL(clicked()), this, SLOT(getSerialPorts())); connect(m_config->pbHelp,SIGNAL(clicked()),this,SLOT(openHelp()));