diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 82ba228da..f777d3ed9 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -348,7 +348,9 @@ void CLCD::showTime(bool force) if (force || last_display || (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();