diff -r 1e0192b295b9 -r 6f8eda55ec2c thermferm/slcd.c --- a/thermferm/slcd.c Mon Jan 14 22:46:27 2019 +0100 +++ b/thermferm/slcd.c Sat Jan 19 11:38:09 2019 +0100 @@ -1,5 +1,5 @@ /***************************************************************************** - * Copyright (C) 2015 + * Copyright (C) 2015-2019 * * Michiel Broek * @@ -33,7 +33,6 @@ uint16_t leds = 0x0400; /* LED's, buzzer, LCD backlight */ uint16_t oleds = 0x0400; -extern int debug; void putLCDsocket(int fd, uint16_t data) @@ -59,12 +58,7 @@ sock = -1; } else { if ((rdat & SLCD_MKEYS) == SLCD_KEYS) { - if (((rdat & 0x00ff) != keys) && debug) - fprintf(stdout, "received keys %04x was %04x\n", rdat & 0x00ff, keys); keys = rdat & 0x00ff; - } else { - if (debug) - fprintf(stdout, "received %04x\n", rdat); } } @@ -88,11 +82,6 @@ } -//void slcdHome(int fd) -//{ -//} - - void slcdClear(int fd) { @@ -102,30 +91,6 @@ -//void slcdDisplay(int fd, int state) -//{ -//} - - - -//void slcdCursor(int fd, int state) -//{ -//} - - - -//void slcdCursorBlink(int fd, int state) -//{ -//} - - - -//void slcdSendCommand(int fd, unsigned char command) -//{ -//} - - - void slcdPosition(int fd, int x, int y) { uint16_t data = SLCD_DGRAM; @@ -165,12 +130,6 @@ -//void slcdPrintf(int fd, const char *message, ...) -//{ -//} - - - /* * Try to setup a udp connection to 127.0.0.1 so we duplicate the panel * display and keys of the real panel. This should fail on a production