diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index a18da130d..7e3bf030c 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -353,7 +353,9 @@ void CLCD::showTime(bool force) if (force || last_display || (switch_name_time_cnt == 0 && ((hour != t->tm_hour) || (minute != t->tm_min)))) { hour = t->tm_hour; minute = t->tm_min; +#if !HAVE_SPARK_HARDWARE && !HAVE_ARM_HARDWARE int ret = -1; +#endif #if HAVE_SPARK_HARDWARE now += t->tm_gmtoff; int fd = dev_open();