Index: firmware/App/Services/SystemCommMessages.c =================================================================== diff -u -r88b7f489c8da945997f1516600a30032393f5088 -r6d5a23b275903587f400bc686aed4d2709cf3e78 --- firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 88b7f489c8da945997f1516600a30032393f5088) +++ firmware/App/Services/SystemCommMessages.c (.../SystemCommMessages.c) (revision 6d5a23b275903587f400bc686aed4d2709cf3e78) @@ -167,14 +167,18 @@ #endif // If we start therapy - if (message->cargo[0] == START && getCurrentOperationMode() == MODE_STAN) { + if (message->cargo[0] == START && getCurrentOperationMode() == MODE_STAN) + { requestNewOperationMode(MODE_FILL); sendTestAckResponseMsg((MSG_ID_T)message->hdr.msgID, TRUE); } // We can only stop fill if we are in fill mode - else if (message->cargo[0] == STOP && getCurrentOperationMode() == MODE_FILL) { + else if (message->cargo[0] == STOP && getCurrentOperationMode() == MODE_FILL) + { requestNewOperationMode(MODE_STAN); sendTestAckResponseMsg((MSG_ID_T)message->hdr.msgID, TRUE); - } else { + } + else + { // TODO: Print to log that either start was called when t he machine was not // in standby or that stop was called when the machine was not in fill sendTestAckResponseMsg((MSG_ID_T)message->hdr.msgID, FALSE);