- switch power off in case of error
git-svn-id: http://moon:8086/svn/projects/HendiControl@44 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -93,7 +93,7 @@ int main(void)
|
|||||||
State_t state = StateNormal;
|
State_t state = StateNormal;
|
||||||
State_t state_next = StateNormal;
|
State_t state_next = StateNormal;
|
||||||
|
|
||||||
fifo_init(&messageFifo, 16, sizeof(Msg_t), "Fifo");
|
fifo_init(&messageFifo, 8, sizeof(Msg_t), "Fifo");
|
||||||
|
|
||||||
/* Replace with your application code */
|
/* Replace with your application code */
|
||||||
uart_init(&messageFifo, BAUD_PRESCALE);
|
uart_init(&messageFifo, BAUD_PRESCALE);
|
||||||
@@ -227,7 +227,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
PRINT("Timeout!\n");
|
PRINT("Timeout!\n");
|
||||||
setPower(PowerLow);
|
setPower(PowerLow);
|
||||||
// setSwitch(SwitchOff);
|
setSwitch(SwitchOff);
|
||||||
state_next = StateError;
|
state_next = StateError;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user