fixed linebreaks, was LFCR, is CRLF
This commit is contained in:
parent
87b6364aa0
commit
a18a89c779
12
protocol.c
12
protocol.c
@ -34,21 +34,21 @@ static uint8_t char_counter;
|
|||||||
|
|
||||||
static void status_message(int status_code) {
|
static void status_message(int status_code) {
|
||||||
if (status_code == 0) {
|
if (status_code == 0) {
|
||||||
printPgmString(PSTR("ok\n\r"));
|
printPgmString(PSTR("ok\r\n"));
|
||||||
} else {
|
} else {
|
||||||
printPgmString(PSTR("error: "));
|
printPgmString(PSTR("error: "));
|
||||||
switch(status_code) {
|
switch(status_code) {
|
||||||
case STATUS_BAD_NUMBER_FORMAT:
|
case STATUS_BAD_NUMBER_FORMAT:
|
||||||
printPgmString(PSTR("Bad number format\n\r")); break;
|
printPgmString(PSTR("Bad number format\r\n")); break;
|
||||||
case STATUS_EXPECTED_COMMAND_LETTER:
|
case STATUS_EXPECTED_COMMAND_LETTER:
|
||||||
printPgmString(PSTR("Expected command letter\n\r")); break;
|
printPgmString(PSTR("Expected command letter\r\n")); break;
|
||||||
case STATUS_UNSUPPORTED_STATEMENT:
|
case STATUS_UNSUPPORTED_STATEMENT:
|
||||||
printPgmString(PSTR("Unsupported statement\n\r")); break;
|
printPgmString(PSTR("Unsupported statement\r\n")); break;
|
||||||
case STATUS_FLOATING_POINT_ERROR:
|
case STATUS_FLOATING_POINT_ERROR:
|
||||||
printPgmString(PSTR("Floating point error\n\r")); break;
|
printPgmString(PSTR("Floating point error\r\n")); break;
|
||||||
default:
|
default:
|
||||||
printInteger(status_code);
|
printInteger(status_code);
|
||||||
printPgmString(PSTR("\n\r"));
|
printPgmString(PSTR("\r\n"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user