mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 19:26:37 +00:00
Removed SetOption177 debugging (#17500)
This commit is contained in:
parent
ff8291f77d
commit
ae1c38aea8
@ -688,18 +688,10 @@ void BacklogLoop(void) {
|
|||||||
void SleepDelay(uint32_t mseconds) {
|
void SleepDelay(uint32_t mseconds) {
|
||||||
if (!TasmotaGlobal.backlog_nodelay && mseconds) {
|
if (!TasmotaGlobal.backlog_nodelay && mseconds) {
|
||||||
uint32_t wait = millis() + mseconds;
|
uint32_t wait = millis() + mseconds;
|
||||||
|
while (!TimeReached(wait) && !Serial.available()) { // We need to service serial buffer ASAP as otherwise we get uart buffer overrun
|
||||||
if (Settings->flag6.spare31) { // SetOption177 - (Debug) Disable FUNC_SLEEP_LOOP
|
XdrvXsnsCall(FUNC_SLEEP_LOOP); // Main purpose is reacting ASAP on serial data availability or interrupt handling (ADE7880)
|
||||||
while (!TimeReached(wait) && !Serial.available()) { // We need to service serial buffer ASAP as otherwise we get uart buffer overrun
|
delay(1);
|
||||||
delay(1);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
while (!TimeReached(wait) && !Serial.available()) { // We need to service serial buffer ASAP as otherwise we get uart buffer overrun
|
|
||||||
XdrvXsnsCall(FUNC_SLEEP_LOOP); // Main purpose is reacting ASAP on serial data availability or interrupt handling (ADE7880)
|
|
||||||
delay(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
delay(0);
|
delay(0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user