From f7aae8aaada59b3ce700352450fda99c35557839 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 7 Feb 2013 04:33:52 +0000 Subject: cleaned up output git-svn-id: https://svn.spreadspace.org/avr/trunk@175 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- usb-i2c-sl018/statemachine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usb-i2c-sl018/statemachine.c') diff --git a/usb-i2c-sl018/statemachine.c b/usb-i2c-sl018/statemachine.c index b141518..7bbe44f 100644 --- a/usb-i2c-sl018/statemachine.c +++ b/usb-i2c-sl018/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\n\r", 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: 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\n\r", event_to_string(event), state_to_string(state)); return; } case reset: case error: - printf("Error: Not accepting commands in state %s\n\r", state_to_string(state)); + printf("Error(state): Not accepting commands in state %s\n\r", 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: 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\n\r", event_to_string(event), state_to_string(state)); return; } } -- cgit v1.2.3