File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1098,6 +1098,19 @@ void MainWindow::sendUDPDatagram(QString message)
1098
1098
return ;
1099
1099
}
1100
1100
1101
+ if (ui->comboBoxLineEnding ->currentIndex () == 1 )
1102
+ {
1103
+ message = message + " \n " ;
1104
+ }
1105
+ else if (ui->comboBoxLineEnding ->currentIndex () == 2 )
1106
+ {
1107
+ message = message + " \r " ;
1108
+ }
1109
+ else if (ui->comboBoxLineEnding ->currentIndex () == 3 )
1110
+ {
1111
+ message = message + " \r\n " ;
1112
+ }
1113
+
1101
1114
if (ui->comboBoxUDPSendMode ->currentText ().contains (" Broadcast" , Qt::CaseSensitivity::CaseInsensitive))
1102
1115
{
1103
1116
networkUDP.write (message, QHostAddress::Broadcast, ui->spinBoxUDPTargetPort ->value ());
@@ -1320,6 +1333,7 @@ void MainWindow::sendSerial(QString message) // TODO - move to serial - error vi
1320
1333
{
1321
1334
message = message + " \r\n " ;
1322
1335
}
1336
+
1323
1337
if (!serial.send (message))
1324
1338
this ->addLog (" App >>\t Unable to send! Serial port closed !" , true );
1325
1339
}
You can’t perform that action at this time.
0 commit comments