summaryrefslogtreecommitdiff
path: root/tuer-rfid/statemachine.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2013-09-23 02:28:07 +0000
committerChristian Pointner <equinox@spreadspace.org>2013-09-23 02:28:07 +0000
commitdabbf161337e31a3f948ad721d401e86237c137a (patch)
tree0c36637ce63a37da4200847b2c6de6ff7003f47e /tuer-rfid/statemachine.c
parentlimits work now with ADC value (diff)
fixed \n\r to \r\n
git-svn-id: https://svn.spreadspace.org/avr/trunk@227 aa12f405-d877-488e-9caf-2d797e2a1cc7
Diffstat (limited to 'tuer-rfid/statemachine.c')
-rw-r--r--tuer-rfid/statemachine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tuer-rfid/statemachine.c b/tuer-rfid/statemachine.c
index b83fbec..4850610 100644
--- a/tuer-rfid/statemachine.c
+++ b/tuer-rfid/statemachine.c
@@ -52,7 +52,7 @@ void change_state(state_t new_state)
{
if (new_state == state)
return;
- printf("State: %s\n\r", state_to_string(new_state));
+ printf("State: %s\r\n", state_to_string(new_state));
switch(new_state) {
case reset:
break;
@@ -137,12 +137,12 @@ void statemachine_task_event(void)
case move_timeout:
return change_state(state==opening?timeout_after_open:timeout_after_close);
default:
- printf("Error(state): event %s not allowed in state %s\n\r", event_to_string(event), state_to_string(state));
+ printf("Error(state): event %s not allowed in state %s\r\n", event_to_string(event), state_to_string(state));
return;
}
case reset:
case error:
- printf("Error(state): Not accepting commands in state %s\n\r", state_to_string(state));
+ printf("Error(state): Not accepting commands in state %s\r\n", state_to_string(state));
break; // Not accepting commands
case manual_movement:
case timeout_after_open:
@@ -166,7 +166,7 @@ void statemachine_task_event(void)
case open_fin:
case close_fin:
case move_timeout:
- printf("Error(state): event %s not allowed in state %s\n\r", event_to_string(event), state_to_string(state));
+ printf("Error(state): event %s not allowed in state %s\r\n", event_to_string(event), state_to_string(state));
return;
}
}