show NTP time while day/night - and "simulated" while simulation
Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user