brewco/keyboard.c

changeset 438
7d1ec160d751
parent 435
4b1ed6897d80
child 441
bde74a8f2ad7
equal deleted inserted replaced
437:5664743eaf2f 438:7d1ec160d751
113 pinMode(PANEL_UP, INPUT); 113 pinMode(PANEL_UP, INPUT);
114 pinMode(PANEL_DOWN, INPUT); 114 pinMode(PANEL_DOWN, INPUT);
115 #endif 115 #endif
116 116
117 syslog(LOG_NOTICE, "Thread my_panel_loop started"); 117 syslog(LOG_NOTICE, "Thread my_panel_loop started");
118 if (debug)
119 fprintf(stdout, "Thread my_panel_loop started\n");
118 120
119 /* 121 /*
120 * Loop forever until the external shutdown variable is set. 122 * Loop forever until the external shutdown variable is set.
121 */ 123 */
122 for (;;) { 124 for (;;) {
235 */ 237 */
236 usleep(10000); 238 usleep(10000);
237 } 239 }
238 240
239 syslog(LOG_NOTICE, "Thread my_panel_loop stopped"); 241 syslog(LOG_NOTICE, "Thread my_panel_loop stopped");
242 if (debug)
243 fprintf(stdout, "Thread my_panel_loop stopped\n");
240 return 0; 244 return 0;
241 } 245 }
242 246
243 247

mercurial