Fixed conditional compile

Mon, 18 Aug 2014 19:58:56 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Mon, 18 Aug 2014 19:58:56 +0200
changeset 249
1ce52a38080e
parent 248
870d0be6880d
child 250
a21865cb1ef4

Fixed conditional compile

thermferm/server.c file | annotate | diff | comparison | revisions
--- a/thermferm/server.c	Mon Aug 18 19:55:52 2014 +0200
+++ b/thermferm/server.c	Mon Aug 18 19:58:56 2014 +0200
@@ -1061,7 +1061,9 @@
 		}
 	    }
 	}
+#ifdef HAVE_WIRINGPI_H
 	lcd_buf_reset();
+#endif
 	run_pause = FALSE;
 
 	syslog(LOG_NOTICE, "Unit %s added", unit->uuid);
@@ -1081,7 +1083,9 @@
 	}
 
 	rc = delete_Unit(param);
+#ifdef HAVE_WIRINGPI_H
 	lcd_buf_reset();
+#endif
 	run_pause = FALSE;
 
 	if (rc) {

mercurial