Upravy kvuli c++20
This commit is contained in:
parent
6916d0be5e
commit
8e022f5935
@ -140,8 +140,7 @@ void wsLED::rtLed() {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LED_BREATH: {
|
case LED_BREATH: {
|
||||||
++mSubState;
|
mSubState = (mSubState + 1) % countof(LB);
|
||||||
mSubState %= countof(LB);
|
|
||||||
uint16_t val = pgm_read_word(&LB[mSubState]);
|
uint16_t val = pgm_read_word(&LB[mSubState]);
|
||||||
mScale = (uint8_t) val;
|
mScale = (uint8_t) val;
|
||||||
val >>= 8;
|
val >>= 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user