mirror of https://github.com/arendst/Tasmota.git
Adjust command ``NoDelay``
This commit is contained in:
parent
98d2dd8f39
commit
074aec0a23
|
@ -344,6 +344,7 @@ void CmndBacklog(void)
|
||||||
}
|
}
|
||||||
// ResponseCmndChar(D_JSON_APPENDED);
|
// ResponseCmndChar(D_JSON_APPENDED);
|
||||||
mqtt_data[0] = '\0';
|
mqtt_data[0] = '\0';
|
||||||
|
backlog_delay = 0;
|
||||||
} else {
|
} else {
|
||||||
bool blflag = BACKLOG_EMPTY;
|
bool blflag = BACKLOG_EMPTY;
|
||||||
#ifdef SUPPORT_IF_STATEMENT
|
#ifdef SUPPORT_IF_STATEMENT
|
||||||
|
|
|
@ -333,8 +333,8 @@ void BacklogLoop(void) {
|
||||||
#endif
|
#endif
|
||||||
nodelay_detected = !strncasecmp_P(cmd.c_str(), PSTR(D_CMND_NODELAY), strlen(D_CMND_NODELAY));
|
nodelay_detected = !strncasecmp_P(cmd.c_str(), PSTR(D_CMND_NODELAY), strlen(D_CMND_NODELAY));
|
||||||
if (nodelay_detected) { nodelay = true; }
|
if (nodelay_detected) { nodelay = true; }
|
||||||
} while (nodelay_detected);
|
} while (!BACKLOG_EMPTY && nodelay_detected);
|
||||||
ExecuteCommand((char*)cmd.c_str(), SRC_BACKLOG);
|
if (!nodelay_detected) { ExecuteCommand((char*)cmd.c_str(), SRC_BACKLOG); }
|
||||||
if (nodelay) { backlog_delay = 0; } // Reset backlog_delay which has been set by ExecuteCommand (CommandHandler)
|
if (nodelay) { backlog_delay = 0; } // Reset backlog_delay which has been set by ExecuteCommand (CommandHandler)
|
||||||
backlog_mutex = false;
|
backlog_mutex = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue