fix for "stuck leds" on stop

This commit is contained in:
2023-02-07 01:50:24 +02:00
parent a7936d4efb
commit 9aec39a39d

View File

@ -40,7 +40,7 @@ channel channels[6] = { //array of channel settings
{10, 0, 0, 0 },
{ 7, 1, 0, 0 },
{ 2, 0, 1, 4 },
{ 6, 1, 1,-4 },
{ 6, 1, 1,-4 }
};
int outsClocksCounts[6];
@ -191,6 +191,7 @@ void updateTiming() {
void resetClocks() {
for (int i = 0; i<6; i++) {
outsClocksCounts[i] = 0;
digitalWrite(outsPins[i], LOW); //to avoid stuck leds
}
}