Upravy kvuli c++20

This commit is contained in:
Pavel Brychta 2024-05-31 07:36:41 +02:00
parent 6916d0be5e
commit 8e022f5935

View File

@ -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;