thermferm/panel.c

changeset 426
e54611453d29
parent 422
13502d0dda65
child 427
e8e548922e31
--- a/thermferm/panel.c	Thu Nov 19 20:45:09 2015 +0100
+++ b/thermferm/panel.c	Thu Nov 19 21:17:26 2015 +0100
@@ -178,7 +178,9 @@
 	     */
 #ifdef HAVE_WIRINGPI_H
 	    piLock(LOCK_LCD);
+#endif
 	    setBacklight(1);
+#ifdef HAVE_WIRINGPI_H
 	    piUnlock(LOCK_LCD);
 #endif
 	    Backlight = LCD_SLEEP;
@@ -198,7 +200,9 @@
 		if (Backlight == 1) {
 #ifdef HAVE_WIRINGPI_H
 		    piLock(LOCK_LCD);
+#endif
 		    setBacklight(0);
+#ifdef HAVE_WIRINGPI_H
 		    piUnlock(LOCK_LCD);
 #endif
 		}

mercurial