Skip to content

Commit 4ba308f

Browse files
committed
update the warning for incompatible protocol
1 parent 0077594 commit 4ba308f

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

SerialPrograms/Source/Controllers/ControllerSelectorWidget.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ ControllerSelectorWidget::ControllerSelectorWidget(QWidget& parent, ControllerSe
7575
layout1->addSpacing(5);
7676

7777
m_status_text->setText(QString::fromStdString(session.status_text()));
78+
m_status_text->setTextFormat(Qt::RichText);
79+
m_status_text->setTextInteractionFlags(Qt::TextBrowserInteraction);
80+
m_status_text->setOpenExternalLinks(true);
7881

7982
m_reset_button = new QPushButton("Reset Ctrl.", this);
8083
#if 1

SerialPrograms/Source/Controllers/SerialPABotBase/SerialPABotBase_Connection.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "Common/Cpp/Exceptions.h"
1212
#include "Common/Cpp/PanicDump.h"
1313
#include "Common/Cpp/SerialConnection/SerialConnection.h"
14+
#include "CommonFramework/Globals.h"
1415
#include "CommonFramework/GlobalSettingsPanel.h"
1516
#include "CommonFramework/Options/Environment/ThemeSelectorOption.h"
1617
#include "CommonFramework/Tools/GlobalThreadPools.h"
@@ -213,7 +214,9 @@ void SerialPABotBase_Connection::throw_incompatible_protocol(){
213214
throw SerialProtocolException(
214215
m_logger, PA_CURRENT_FUNCTION,
215216
"Incompatible protocol. Device: " + std::to_string(m_protocol) + "<br>"
216-
"Please flash the .hex/.bin that came with this version of the program."
217+
"Please flash your microcontroller (e.g. ESP32, Pico W, Arduino) <br>"
218+
"with the .bin/.uf2/.hex that came with this version of the program.<br>" +
219+
make_text_url(ONLINE_DOC_URL_BASE + "SetupGuide/Reflash.html", "See documentation for more details.")
217220
);
218221
}
219222
ControllerType SerialPABotBase_Connection::process_device(bool set_to_null_controller){

0 commit comments

Comments
 (0)