Code robustness #2

Merged
mars3142 merged 3 commits from feature/code_robustness into main 2025-12-24 22:53:20 +00:00
Showing only changes of commit 8ba2a5be1d - Show all commits

View File

@@ -38,7 +38,8 @@ void ClockScreenSaver::updateTextDimensions()
void ClockScreenSaver::getCurrentTimeString(char *buffer, size_t bufferSize) const void ClockScreenSaver::getCurrentTimeString(char *buffer, size_t bufferSize) const
{ {
if (m_options && m_options->persistenceManager->GetValue("light_active", false)) if (m_options && m_options->persistenceManager->GetValue("light_active", false) &&
m_options->persistenceManager->GetValue("light_mode", 0) == 0)
{ {
char *simulated_time = get_time(); char *simulated_time = get_time();
if (simulated_time != nullptr) if (simulated_time != nullptr)