Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: mbed_blinky-bmd-200 bmd-200_accel_demo firstRig
Fork of mbed-src by
Diff: targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c
- Revision:
- 158:3121b9889f7b
- Parent:
- 82:0b31dbcd4769
- Child:
- 227:7bd0639b8911
--- a/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Fri Apr 11 17:15:06 2014 +0100
+++ b/targets/hal/TARGET_Freescale/TARGET_KLXX/serial_api.c Fri Apr 11 17:30:07 2014 +0100
@@ -159,7 +159,7 @@
// TODO: Support other number of data bits (also in the write method!)
if ((data_bits < 8) || (data_bits > 8)) {
- error("Invalid number of bits (%d) in serial format, should be 8\r\n", data_bits);
+ error("Invalid number of bits (%d) in serial format, should be 8", data_bits);
}
uint8_t parity_enable, parity_select;
@@ -168,13 +168,13 @@
case ParityOdd : parity_enable = 1; parity_select = 1; data_bits++; break;
case ParityEven: parity_enable = 1; parity_select = 0; data_bits++; break;
default:
- error("Invalid serial parity setting\r\n");
+ error("Invalid serial parity setting");
return;
}
// 1 stop bits = 0, 2 stop bits = 1
if ((stop_bits != 1) && (stop_bits != 2)) {
- error("Invalid stop bits specified\r\n");
+ error("Invalid stop bits specified");
}
stop_bits -= 1;
