A common library used by Digi International Inc. mbed libraries to output debug information.
Dependents: XBeeLib XBeeLib_Test Chi-XBee-Actuator Chi-XBee-Sensor ... more
A common library used by Digi International Inc. mbed libraries to output debug information.
Used by XBeeLib
See Debugging the library chapter for more info.
Diff: DigiLoggerMbedSerial.cpp
- Revision:
- 5:58c5158b5120
- Parent:
- 0:e83acb8d505c
diff -r b67d49554d8c -r 58c5158b5120 DigiLoggerMbedSerial.cpp --- a/DigiLoggerMbedSerial.cpp Mon May 18 13:16:43 2015 +0200 +++ b/DigiLoggerMbedSerial.cpp Mon Jun 01 18:59:28 2015 +0200 @@ -29,14 +29,15 @@ /* Class destructor */ DigiLoggerMbedSerial::~DigiLoggerMbedSerial() { - _log_serial = nullptr; - DigiLogger::current_logger = nullptr; + _log_serial = NULL; + DigiLogger::current_logger = NULL; } void DigiLoggerMbedSerial::log_buffer(char const * const buffer) { - if (_log_serial == nullptr) + if (_log_serial == NULL) { return; + } _log_serial->printf("%s", buffer); fflush(*_log_serial);