|
@@ -151,6 +151,7 @@ void *coffeeThread(void *threadid) {
|
|
|
}
|
|
|
/*
|
|
|
* @TODO FIXME:
|
|
|
+ * Put in HAL
|
|
|
* The time measurement makes no sense, since the FSM loops and there are a lot of interrupts that
|
|
|
* should be considered (like buttons or proximity sensor)
|
|
|
* Suggestion: capture time snapshot once at change to heating. If a change to another state occurs,
|
|
@@ -261,7 +262,7 @@ bool SigValueEmpty(void) {
|
|
|
* @param newState
|
|
|
*/
|
|
|
void changeState(coffee_status_t newState) {
|
|
|
- logger(V_BREW, "Changing state to %d\n", newState);
|
|
|
+ logger(V_BREW, "Changing state to %s\n", StateName[newState]);
|
|
|
state = newState;
|
|
|
|
|
|
event_trigger("statechange", &state, sizeof(state));
|