- basic formatting
This commit is contained in:
ZanzyTHEbar 2022-09-26 13:40:59 +01:00
parent 1c324fc0ac
commit 86084ecd06
2 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ void LEDManager::handleLED(StateManager<LEDStates_e> *stateManager)
if (ledStateMap.find(stateManager->getCurrentState()) != ledStateMap.end())
{
BlinkPatterns_t blinkPatterns = ledStateMap[stateManager->getCurrentState()]; // Get the blink pattern for the current state
unsigned long currentMillis = millis(); // Get the current time
if (currentMillis - _previousMillis >= blinkPatterns.delayTime) // Check if the current time is greater than the previous time plus the delay time
unsigned long currentMillis = millis(); // Get the current time
if (currentMillis - _previousMillis >= blinkPatterns.delayTime) // Check if the current time is greater than the previous time plus the delay time
{
_previousMillis = currentMillis;
for (int i = 0; i < blinkPatterns.times; i++)

View File

@ -1 +1 @@
34
38