thermferm/lcd-buffer.c

changeset 418
0bfe08c7ba6e
parent 245
b01b6238eb67
child 420
644a6106d712
--- a/thermferm/lcd-buffer.c	Sun Nov 08 21:24:52 2015 +0100
+++ b/thermferm/lcd-buffer.c	Sun Nov 08 22:13:02 2015 +0100
@@ -26,8 +26,6 @@
 #include "panel.h"
 
 
-#ifdef HAVE_WIRINGPI_H
-
 int			current_lines = 0;
 int			current_offset = 0;
 lcd_rows		*my_lcd_rows = NULL;
@@ -149,8 +147,10 @@
 	return;
     }
 
+#ifdef HAVE_WIRINGPI_H
     lcdPosition(lcdHandle, 0, r);
     lcdPuts(lcdHandle, tmp->row);
+#endif
 
     r++;
     if (r < Config.lcd_rows) {
@@ -158,11 +158,11 @@
 	    tmp = tmp->next;
 	else
 	    tmp = my_lcd_rows;
+#ifdef HAVE_WIRINGPI_H
 	lcdPosition(lcdHandle, 0, r);
 	lcdPuts(lcdHandle, tmp->row);
+#endif
     }
 }
 
 
-
-#endif

mercurial