From dabbf161337e31a3f948ad721d401e86237c137a Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 23 Sep 2013 02:28:07 +0000 Subject: fixed \n\r to \r\n git-svn-id: https://svn.spreadspace.org/avr/trunk@227 aa12f405-d877-488e-9caf-2d797e2a1cc7 --- tuer-rfid/sl018.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tuer-rfid/sl018.c') diff --git a/tuer-rfid/sl018.c b/tuer-rfid/sl018.c index 99382a9..be96e9b 100644 --- a/tuer-rfid/sl018.c +++ b/tuer-rfid/sl018.c @@ -155,7 +155,7 @@ uint8_t sl018_cmd_raw(const uint8_t* twi_send_buf, bool wait_for_answer) uint8_t sl018_reset(void) { if(sl018_cmd_raw(SL018_CMD_ComReset, 0)) { - printf("Error(i2c): bus error\n\r"); + printf("Error(i2c): bus error\r\n"); return 1; } return 0; @@ -164,20 +164,20 @@ uint8_t sl018_reset(void) uint8_t sl018_cmd(const uint8_t* twi_send_buf) { if(sl018_cmd_raw(twi_send_buf, 1)) { - printf("Error(i2c): bus error\n\r"); + printf("Error(i2c): bus error\r\n"); return 1; } else { if(twi_recv_msg->len < 2) { - printf("Error(SL018): short message received\n\r"); + printf("Error(SL018): short message received\r\n"); return 1; } if(twi_recv_msg->status) { - printf("Error(SL018): '%s','%s'\n\r",SL018_cmd_tostring(twi_recv_msg->command),SL018_status_tostring(twi_recv_msg->status)); + printf("Error(SL018): '%s','%s'\r\n",SL018_cmd_tostring(twi_recv_msg->command),SL018_status_tostring(twi_recv_msg->status)); return 1; } sl018_message_t * twi_send_msg = (sl018_message_t *)twi_send_buf; if(twi_send_msg->command != twi_recv_msg->command) { - printf("Error(SL018): mismatch of sent and received command code: %02X,%02X\n\r",twi_send_msg->command,twi_recv_msg->command); + printf("Error(SL018): mismatch of sent and received command code: %02X,%02X\r\n",twi_send_msg->command,twi_recv_msg->command); } } return 0; @@ -192,25 +192,25 @@ void sl018_read_card_uid(uid_t * uid) { uint8_t uid_len = twi_recv_msg->len - sizeof(twi_recv_msg->command) - sizeof(twi_recv_msg->status) - 1; if(uid_len == 255 || uid_len > MAX_UID_LEN) { - printf(" received UID length (%d) is to big for keystore \n\r", uid_len); + printf(" received UID length (%d) is to big for keystore \r\n", uid_len); return; } uint8_t type = twi_recv_msg->data[uid_len]; uint8_t expected_uid_len = SL018_tagtype_to_uidlen(type); if(expected_uid_len != uid_len) { - printf(" Invalid uid length (%d) for tag type: %s\n\r", uid_len, SL018_tagtype_tostring(type)); + printf(" Invalid uid length (%d) for tag type: %s\r\n", uid_len, SL018_tagtype_tostring(type)); return; } for (uint8_t pos=0; posdata[uid_len-pos-1]); - printf( ", %s\n\r", SL018_tagtype_tostring(type)); + printf( ", %s\r\n", SL018_tagtype_tostring(type)); if (0 < type && type < 7) { uid->length= uid_len; uid->buffer=twi_recv_msg->data; } else { - printf("Info(card): Ignoring unknown card type %02x\n\r",type); + printf("Info(card): Ignoring unknown card type %02x\r\n",type); } } } -- cgit v1.2.3