Skip to content

Commit 7767422

Browse files
committed
Fix exiting sleep mode
Always start loop task in initialize function, regardless of being in sleep mode.
1 parent 897f50e commit 7767422

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

firmware/main/nixie_clock.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,9 @@ void NixieClock::initialize() {
165165
// Show current time after the current time is synced
166166
if (isTimeSynced && !isInSleepMode()) {
167167
startShowCurrentTimeTask();
168-
xTaskCreate(loopTask, "loopTask", 4096, this, 2, nullptr);
169168
}
169+
170+
xTaskCreate(loopTask, "loopTask", 4096, this, 2, nullptr);
170171
}
171172

172173
std::optional<LedInfo> NixieClock::onGetLedInfo() const {

0 commit comments

Comments
 (0)