thermferm/panel.c

changeset 216
d734255e66a0
parent 213
2317b8d644fa
child 219
ae720212accc
--- a/thermferm/panel.c	Mon Aug 11 11:09:23 2014 +0200
+++ b/thermferm/panel.c	Mon Aug 11 11:50:23 2014 +0200
@@ -108,6 +108,10 @@
 		Key_Enter = TRUE;
 	    if (Enter > PRESS_LONG)
 		Key_Enter_Long = TRUE;
+	    if (Enter == PRESS_LONG)
+		digitalWrite(PANEL_LED, 1);
+	    if (Enter == (PRESS_LONG + 10))
+		digitalWrite(PANEL_LED, 0);
 	}
 
 	if (digitalRead(PANEL_UP)) {

mercurial