thermferm/panel.c

changeset 426
e54611453d29
parent 422
13502d0dda65
child 427
e8e548922e31
equal deleted inserted replaced
425:c51265b518ce 426:e54611453d29
176 /* 176 /*
177 * Any key is pressed. 177 * Any key is pressed.
178 */ 178 */
179 #ifdef HAVE_WIRINGPI_H 179 #ifdef HAVE_WIRINGPI_H
180 piLock(LOCK_LCD); 180 piLock(LOCK_LCD);
181 #endif
181 setBacklight(1); 182 setBacklight(1);
183 #ifdef HAVE_WIRINGPI_H
182 piUnlock(LOCK_LCD); 184 piUnlock(LOCK_LCD);
183 #endif 185 #endif
184 Backlight = LCD_SLEEP; 186 Backlight = LCD_SLEEP;
185 menutimer = 0; 187 menutimer = 0;
186 } else { 188 } else {
196 198
197 if (AnyKey == FALSE) { 199 if (AnyKey == FALSE) {
198 if (Backlight == 1) { 200 if (Backlight == 1) {
199 #ifdef HAVE_WIRINGPI_H 201 #ifdef HAVE_WIRINGPI_H
200 piLock(LOCK_LCD); 202 piLock(LOCK_LCD);
203 #endif
201 setBacklight(0); 204 setBacklight(0);
205 #ifdef HAVE_WIRINGPI_H
202 piUnlock(LOCK_LCD); 206 piUnlock(LOCK_LCD);
203 #endif 207 #endif
204 } 208 }
205 if (Backlight > 0) { 209 if (Backlight > 0) {
206 Backlight--; 210 Backlight--;

mercurial