mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- basic formatting
This commit is contained in:
parent
1c324fc0ac
commit
86084ecd06
@ -66,8 +66,8 @@ void LEDManager::handleLED(StateManager<LEDStates_e> *stateManager)
|
|||||||
if (ledStateMap.find(stateManager->getCurrentState()) != ledStateMap.end())
|
if (ledStateMap.find(stateManager->getCurrentState()) != ledStateMap.end())
|
||||||
{
|
{
|
||||||
BlinkPatterns_t blinkPatterns = ledStateMap[stateManager->getCurrentState()]; // Get the blink pattern for the current state
|
BlinkPatterns_t blinkPatterns = ledStateMap[stateManager->getCurrentState()]; // Get the blink pattern for the current state
|
||||||
unsigned long currentMillis = millis(); // Get the current 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
|
if (currentMillis - _previousMillis >= blinkPatterns.delayTime) // Check if the current time is greater than the previous time plus the delay time
|
||||||
{
|
{
|
||||||
_previousMillis = currentMillis;
|
_previousMillis = currentMillis;
|
||||||
for (int i = 0; i < blinkPatterns.times; i++)
|
for (int i = 0; i < blinkPatterns.times; i++)
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
34
|
38
|
||||||
Loading…
Reference in New Issue
Block a user