From 8e022f59355184c6896ed2c932f2af0761313fcd Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Fri, 31 May 2024 07:36:41 +0200 Subject: [PATCH] Upravy kvuli c++20 --- src/WSLed.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/WSLed.cpp b/src/WSLed.cpp index 9b6fd09..922227a 100644 --- a/src/WSLed.cpp +++ b/src/WSLed.cpp @@ -140,8 +140,7 @@ void wsLED::rtLed() { break; case LED_BREATH: { - ++mSubState; - mSubState %= countof(LB); + mSubState = (mSubState + 1) % countof(LB); uint16_t val = pgm_read_word(&LB[mSubState]); mScale = (uint8_t) val; val >>= 8;