fix: Led act

This commit is contained in:
Clement 2023-11-17 20:29:06 +01:00
parent 84b7a341da
commit 6d77a22a76

View File

@ -28,8 +28,8 @@ void LedLib::actLed(int nb, int start){
// Loop in LEDs // Loop in LEDs
for (int i = start; i <= nb+start-1; i++) { for (int i = start; i <= nb+start-1; i++) {
int j = i; int j = i;
if(j > 24){ if(j >= 24){
j -= 25; j -= 24;
} }
// Une LED sur deux est blanche : heure entière, l'autre rouge pour 30m // Une LED sur deux est blanche : heure entière, l'autre rouge pour 30m