summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-05 13:45:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-05 13:45:21 +0100
commitf13d8c9f1219da83fd623c40505e04e91cbedb5e (patch)
treeefcbf33f4b2b5ffcbc4e9d9e7272b7ca1e4c156e
parent3f5f5a8d67169aef402c10284d4337ef5345efdc (diff)
tracker/hatire: add non-standard baud rates
Fixes: #1689
-rw-r--r--tracker-hatire/ftnoir_tracker_hat_dialog.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
index 39883a34..013d4bd3 100644
--- a/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
+++ b/tracker-hatire/ftnoir_tracker_hat_dialog.cpp
@@ -32,6 +32,16 @@ dialog_hatire::dialog_hatire() : theTracker(nullptr), timer(this)
ui.QCB_Serial_baudRate->addItem(QLatin1String("38400"),QSerialPort::Baud38400);
ui.QCB_Serial_baudRate->addItem(QLatin1String("57600"),QSerialPort:: Baud57600);
ui.QCB_Serial_baudRate->addItem(QLatin1String("115200"),QSerialPort::Baud115200);
+ ui.QCB_Serial_baudRate->addItem(QLatin1String("230400"),(QSerialPort::BaudRate)230400);
+ ui.QCB_Serial_baudRate->addItem(QLatin1String("250000"),(QSerialPort::BaudRate)250000);
+ ui.QCB_Serial_baudRate->addItem(QLatin1String("500000"),(QSerialPort::BaudRate)500000);
+ ui.QCB_Serial_baudRate->addItem(QLatin1String("1000000"),(QSerialPort::BaudRate)1000000);
+#if 0
+ Baud230400 = 230400,
+ Baud250000 = 250000,
+ Baud500000 = 500000,
+ Baud1000000 = 1000000,
+#endif
ui.QCB_Serial_dataBits->clear();
ui.QCB_Serial_dataBits->addItem(QLatin1String("5"), QSerialPort::Data5);