|
@@ -129,7 +129,12 @@ void *coffeeThread(void *threadid) {
|
|
|
|
|
|
switch (getSigValue(MODE_MENU)) {
|
|
|
case SigInt0Rls:
|
|
|
- changeState(STATE_WAIT_OFF);
|
|
|
+ if(halIsHeating()){
|
|
|
+ changeState(STATE_WAIT_OFF);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ changeState(STATE_OFF);
|
|
|
+ }
|
|
|
leaveMenu();
|
|
|
break;
|
|
|
|
|
@@ -257,6 +262,7 @@ void *coffeeThread(void *threadid) {
|
|
|
|
|
|
switch (getSigValue(MODE_STATE)) {
|
|
|
case SigInt0Rls:
|
|
|
+ case SigPowerUp:
|
|
|
//Check waterlevel in gray water tank
|
|
|
//turn machine on
|
|
|
halMachineOn();
|
|
@@ -297,6 +303,7 @@ void *coffeeThread(void *threadid) {
|
|
|
|
|
|
case SigInt0Psh:
|
|
|
case SigInt1Psh:
|
|
|
+ case SigPowerUp:
|
|
|
if (halProxSensorCovered()) {
|
|
|
changeState(STATE_FULLTANK);
|
|
|
} else if (initalHeating) {
|
|
@@ -338,6 +345,10 @@ void *coffeeThread(void *threadid) {
|
|
|
changeState(STATE_IDLE);
|
|
|
break;
|
|
|
|
|
|
+ case SigPowerDown:
|
|
|
+ changeState(STATE_WAIT_OFF);
|
|
|
+ break;
|
|
|
+
|
|
|
case SigInt1Psh:
|
|
|
changeMode(MODE_MENU);
|
|
|
break;
|
|
@@ -381,6 +392,10 @@ void *coffeeThread(void *threadid) {
|
|
|
changeState(STATE_BREWMANUAL);
|
|
|
break;
|
|
|
|
|
|
+ case SigPowerDown:
|
|
|
+ changeState(STATE_WAIT_OFF);
|
|
|
+ break;
|
|
|
+
|
|
|
case SigInt1Psh:
|
|
|
//Enter the menu
|
|
|
changeMode(MODE_MENU);
|
|
@@ -421,6 +436,10 @@ void *coffeeThread(void *threadid) {
|
|
|
changeState(STATE_BREWMANUAL);
|
|
|
break;
|
|
|
|
|
|
+ case SigPowerDown:
|
|
|
+ changeState(STATE_OFF);
|
|
|
+ break;
|
|
|
+
|
|
|
case SigInt1Psh:
|
|
|
//Enter the menu
|
|
|
changeMode(MODE_MENU);
|