From c7c52324a39c3b65e21b35d9983f26e95efa6537 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Fri, 3 Nov 2017 18:25:18 +0100 Subject: [PATCH] fix generic build --- src/driver/simple_display.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/simple_display.cpp b/src/driver/simple_display.cpp index 347ff46ea..82ba228da 100644 --- a/src/driver/simple_display.cpp +++ b/src/driver/simple_display.cpp @@ -80,7 +80,7 @@ static int proc_put(const char *path, bool state) return ret; } #else -static int proc_put(const char *path, bool state) {} +static int proc_put(const char *path, bool state) {return 0;} #endif static char volume = 0; @@ -348,8 +348,8 @@ 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 int ret = -1; +#if HAVE_SPARK_HARDWARE now += t->tm_gmtoff; int fd = dev_open(); #if 0 /* VFDSETTIME is broken and too complicated anyway -> use VFDSETTIME2 */