simple_display: cleanup from unused code inside ifdef mess

Origin commit data
------------------
Commit: a720155336
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-13 (Mon, 13 Nov 2017)

Origin message was:
------------------
- simple_display: cleanup from unused code inside ifdef mess
This commit is contained in:
vanhofen
2017-11-13 10:10:45 +01:00
parent 0cbfb8e52f
commit e7d41214f3

View File

@@ -359,18 +359,7 @@ void CLCD::showTime(bool force)
#if HAVE_SPARK_HARDWARE
now += t->tm_gmtoff;
int fd = dev_open();
#if 0 /* VFDSETTIME is broken and too complicated anyway -> use VFDSETTIME2 */
int mjd = 40587 + now / 86400; /* 1970-01-01 is mjd 40587 */
struct aotom_ioctl_data d;
d.u.time.time[0] = mjd >> 8;
d.u.time.time[1] = mjd & 0xff;
d.u.time.time[2] = hour;
d.u.time.time[3] = minute;
d.u.time.time[4] = t->tm_sec;
int ret = ioctl(fd, VFDSETTIME, &d);
#else
ret = ioctl(fd, VFDSETTIME2, &now);
#endif
close(fd);
#endif
#if HAVE_ARM_HARDWARE