Vybhav Kadaba
/
EV-PRO-MW1001_Development_updateFW
Bumped Mbed FW version to 01.20.0080
Diff: src/mbed/admw_log.cpp
- Revision:
- 23:bb685f35b08b
- Parent:
- 5:0728bde67bdb
- Child:
- 32:52445bef314d
diff -r 2835e9e9f59f -r bb685f35b08b src/mbed/admw_log.cpp --- a/src/mbed/admw_log.cpp Thu Sep 26 05:56:58 2019 +0000 +++ b/src/mbed/admw_log.cpp Thu Sep 26 06:15:39 2019 +0000 @@ -63,9 +63,8 @@ gpUartDevice = new Serial((PinName)pConfig->txPin, (PinName)pConfig->rxPin, - pConfig->baudRate); - if (!gpUartDevice) - { + pConfig->baudRate); + if (!gpUartDevice) { ADMW_LOG_ERROR("Failed to allocate memory for Log UART context"); return ADMW_NO_MEM; } @@ -78,8 +77,7 @@ */ void admw_LogClose(void) { - if (gpUartDevice) - { + if (gpUartDevice) { delete gpUartDevice; gpUartDevice = 0; }