Explorar el Código

changed initial state of the buttoncache to high since they are low active

Sebastian hace 7 años
padre
commit
dca74cfceb
Se han modificado 2 ficheros con 3 adiciones y 1 borrados
  1. 2 0
      CoffeeCode/display.cpp
  2. 1 1
      CoffeeCode/hal.cpp

+ 2 - 0
CoffeeCode/display.cpp

@@ -206,6 +206,8 @@ void displayTerminate(event_t *e) {
  */
 
 void* displayThread(void* threadid) {
+	//TODO: the display is loosing the first events here since it is waiting before it is subscribing
+	//its loosing the descaling event triggered at the beginning of coffee initialisation
 	sleep(1); // Wait for other components to initialize
 	int tmp = sqlGetConf(CFGdisplaylang);
 	if (!tmp || tmp >= lang_last)

+ 1 - 1
CoffeeCode/hal.cpp

@@ -23,7 +23,7 @@ bool idle;
 bool flagIgnoreRlsInt0, flagIgnoreRlsInt1;
 
 //storage for the last state of the buttons and the proximity sensor
-int pinState[3] = {0, 0, 0};
+int pinState[3] = {1, 1, 1};
 
 timer Int0Timer(&halInt0TimerHandler);
 timer Int1Timer(&halInt1TimerHandler);