rework ping

This commit is contained in:
Philippe Teuwen 2019-05-07 23:35:09 +02:00
parent bf0ab55833
commit 2f1061f95b
8 changed files with 25 additions and 36 deletions

View file

@ -46,7 +46,7 @@ static int l_fast_push_mode(lua_State *L) {
// Disable fast mode and send a dummy command to make it effective
if (enable == false) {
SendCommandNG(CMD_PING, NULL, 0);
WaitForResponseTimeout(CMD_ACK, NULL, 1000);
WaitForResponseTimeout(CMD_PING, NULL, 1000);
}
//Push the retval on the stack