mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: targets/TARGET_NXP/TARGET_LPC13XX/serial_api.c
- Revision:
- 188:bcfe06ba3d64
- Parent:
- 149:156823d33999
--- a/targets/TARGET_NXP/TARGET_LPC13XX/serial_api.c Thu Sep 06 13:40:20 2018 +0100 +++ b/targets/TARGET_NXP/TARGET_LPC13XX/serial_api.c Thu Nov 08 11:46:34 2018 +0000 @@ -196,7 +196,7 @@ stop_bits -= 1; data_bits -= 5; - int parity_enable, parity_select; + int parity_enable = 0, parity_select = 0; switch (parity) { case ParityNone: parity_enable = 0; parity_select = 0; break; case ParityOdd : parity_enable = 1; parity_select = 0; break;