Display BLE errors with messagebox

This commit is contained in:
Alex Spataru 2024-11-18 03:49:32 -05:00
parent 025f010301
commit 694ece8b02

View File

@ -22,6 +22,7 @@
#include <QOperatingSystemVersion> #include <QOperatingSystemVersion>
#include "Misc/Utilities.h"
#include "IO/Drivers/BluetoothLE.h" #include "IO/Drivers/BluetoothLE.h"
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -40,6 +41,12 @@ IO::Drivers::BluetoothLE::BluetoothLE()
{ {
connect(this, &IO::Drivers::BluetoothLE::deviceIndexChanged, this, connect(this, &IO::Drivers::BluetoothLE::deviceIndexChanged, this,
&IO::Drivers::BluetoothLE::configurationChanged); &IO::Drivers::BluetoothLE::configurationChanged);
connect(this, &IO::Drivers::BluetoothLE::error, this,
[=](const QString &message) {
Misc::Utilities::showMessageBox(tr("BLE I/O Module Error"),
message);
});
} }
/** /**