DMX flickering bug fixed, RGB on PWM

This commit is contained in:
2020-12-09 04:03:18 +03:00
parent 0055ad0463
commit 54d22620b0
4 changed files with 29 additions and 10 deletions

View File

@@ -358,8 +358,8 @@ if (store->pollingRegisters && !modbusBusy && (Status() == CST_INITIALIZED) && i
debugSerial<<F("endPoll ")<< item->itemArr->name << endl;
//Non blocking waiting to release line
uint32_t time = millis()+50;
while (millis()<time)
uint32_t time = millis();
while (!isTimeOver(time,millis(),50))
modbusIdle();
modbusBusy =0;