fix: Led act
This commit is contained in:
parent
84b7a341da
commit
6d77a22a76
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user