Skip to content

Commit

Permalink
Several Bugfixes
Browse files Browse the repository at this point in the history
Update Voltage output to be able to be sent to any display
Time override fixes to ensure state is reset correctly.
Loop overide fixes to ensure state is reset correctly.
  • Loading branch information
neil-hutchison-wdc committed Feb 8, 2021
1 parent a3984a4 commit a11819a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions LogicEngine.ino
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,8 @@ void loopsDonedoRestoreDefault(uint8_t logicDisplay)
{
// Set back to the default pattern
lastEventCode[logicDisplay - 1] = defaultPattern;
lastEventDuration[logicDisplay - 1] = 0;
ledPatternState[logicDisplay - 1] = 0;
patternRunning[logicDisplay - 1] = false;
}
}
Expand All @@ -994,6 +996,8 @@ void globalTimerDonedoRestoreDefault(int logicDisplay)
globalPatternLoops[logicDisplay - 1] = 0;
// Global timeout expired, go back to default mode.
lastEventCode[logicDisplay - 1] = defaultPattern;
lastEventDuration[logicDisplay - 1] = 0;
ledPatternState[logicDisplay - 1] = 0;
patternRunning[logicDisplay - 1] = false;
}
}
Expand Down Expand Up @@ -1791,8 +1795,8 @@ void display_power(int logicDisplay)
// We set the text to the Bottom Logic, just print that.
DEBUG_PRINT_LN(battery_text);

setText(FLD_BOTTOM, battery_text);
runPattern(FLD_BOTTOM, 98);
setText(logicDisplay, battery_text);
runPattern(logicDisplay, 98);

}

Expand Down

0 comments on commit a11819a

Please sign in to comment.