1629,7 → 1629,7 |
|
Conn->Close(); |
|
ac_ConnectTTY->setText("Seriell Verbinden"); |
ac_ConnectTTY->setText("Kopter Verbinden"); |
le_Port->setEnabled(true); |
|
Ticker->stop(); |
1636,9 → 1636,19 |
} |
else |
{ |
if (Conn->Open(le_Port->text())) |
int i_Type; |
if (le_Port->text().contains(QString("IP:"))) |
{ |
ac_ConnectTTY->setText("Seriell Trennen"); |
i_Type = C_IP; |
} |
else |
{ |
i_Type = C_TTY; |
} |
|
if (Conn->Open(i_Type, le_Port->text())) |
{ |
ac_ConnectTTY->setText("Kopter Trennen"); |
le_Port->setEnabled(false); |
|
Conn->send_Cmd('v', ADDRESS_ALL, TX_Data, 0, true); |