fix generic build

Origin commit data
------------------
Branch: ni/coolstream
Commit: c7c52324a3
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-11-03 (Fri, 03 Nov 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2017-11-03 18:25:18 +01:00
parent e89f1f32e5
commit 6dd12cd80f

View File

@@ -80,7 +80,7 @@ static int proc_put(const char *path, bool state)
return ret; return ret;
} }
#else #else
static int proc_put(const char *path, bool state) {} static int proc_put(const char *path, bool state) {return 0;}
#endif #endif
static char volume = 0; 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)) { if (force || last_display || (hour != t->tm_hour) || (minute != t->tm_min)) {
hour = t->tm_hour; hour = t->tm_hour;
minute = t->tm_min; minute = t->tm_min;
#if HAVE_SPARK_HARDWARE
int ret = -1; int ret = -1;
#if HAVE_SPARK_HARDWARE
now += t->tm_gmtoff; now += t->tm_gmtoff;
int fd = dev_open(); int fd = dev_open();
#if 0 /* VFDSETTIME is broken and too complicated anyway -> use VFDSETTIME2 */ #if 0 /* VFDSETTIME is broken and too complicated anyway -> use VFDSETTIME2 */