471 |
AppendText(tekst); |
AppendText(tekst); |
472 |
} |
} |
473 |
} |
} |
474 |
Sleep(5); //Small delay to avoid busy wait |
Sleep(10); //Small delay to avoid busy wait |
475 |
} |
} |
476 |
Sleep(100); //Give the modem a chance to send the last data |
Sleep(100); //Give the modem a chance to send the last data |
477 |
while(Serial.getComstat().cbInQue > 0) |
while(Serial.getComstat().cbInQue > 0) |
741 |
CString SQL, Textwindow; |
CString SQL, Textwindow; |
742 |
SQL.Format("update command set executed=now() where id=%s",IDnr); |
SQL.Format("update command set executed=now() where id=%s",IDnr); |
743 |
db.ExecuteSQL(SQL); |
db.ExecuteSQL(SQL); |
744 |
|
Sleep(10); |
745 |
AppendText("Command executed"); |
AppendText("Command executed"); |
746 |
} |
} |
747 |
Sleep(150); |
Sleep(150); |