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.
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;
}