simple_display.cpp: partial revert "fix generic build"

This reverts commit c7c52324a3.

hd51 build was broken with -Werror=unused-variable
This commit is contained in:
2017-11-04 15:39:04 +01:00
parent 75fd96f6b7
commit 58db5ee331

View File

@@ -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();