show NTP time while day/night - and "simulated" while simulation

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2025-12-24 23:46:05 +01:00
parent 016734a4db
commit 8ba2a5be1d

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)