diff --git a/src/open9x.cpp b/src/open9x.cpp index bb2edd267..c93356b45 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -2041,8 +2041,8 @@ void perOut(uint8_t tick10ms) if (swTog) { sDelay[i] = md->delayUp * 50; } - if (sDelay[i]) { // perform delay - if(tick10ms) sDelay[i]-=tick10ms; + if (sDelay[i] > 0) { // perform delay + if (tick10ms) sDelay[i]-=tick10ms; if (!md->swtch) { v = -1024; } @@ -2062,8 +2062,8 @@ void perOut(uint8_t tick10ms) if (swTog) { sDelay[i] = md->delayDown * 50; } - if (sDelay[i]) { // perform delay - if(tick10ms) sDelay[i]-=tick10ms; + if (sDelay[i] > 0) { // perform delay + if (tick10ms) sDelay[i]-=tick10ms; if (!md->swtch) v = +1024; has_delay = true; }