diff --git a/cores/nRF5/utility/debug.cpp b/cores/nRF5/utility/debug.cpp index 297768e3..074ee75a 100644 --- a/cores/nRF5/utility/debug.cpp +++ b/cores/nRF5/utility/debug.cpp @@ -177,6 +177,12 @@ void dbgPrintVersion(void) /******************************************************************************/ void dbgDumpMemory(void const *buf, uint8_t size, uint16_t count, bool printOffset) { + if ( !buf ) + { + cprintf("NULL\n"); + return; + } + uint8_t const *buf8 = (uint8_t const *) buf; char format[] = "%00lX"; diff --git a/libraries/Bluefruit52Lib/src/BLEGap.h b/libraries/Bluefruit52Lib/src/BLEGap.h index 07e4066c..19dc5e4a 100644 --- a/libraries/Bluefruit52Lib/src/BLEGap.h +++ b/libraries/Bluefruit52Lib/src/BLEGap.h @@ -67,11 +67,11 @@ class BLEGap uint16_t getPeerName (uint16_t conn_handle, char* buf, uint16_t bufsize); uint16_t getMTU (uint16_t conn_handle); - uint16_t getMaxMtuByConnCfg (uint8_t conn_cfg); - uint16_t getMaxMtu (uint8_t conn_handle); + uint16_t getMaxMtuByConnCfg (uint8_t conn_cfg); + uint16_t getMaxMtu (uint8_t conn_handle); - uint8_t getHvnQueueSize (uint8_t conn_handle); - uint8_t getWriteCmdQueueSize (uint8_t conn_handle); + uint8_t getHvnQueueSize (uint8_t conn_handle); + uint8_t getWriteCmdQueueSize (uint8_t conn_handle); bool getHvnPacket (uint16_t conn_handle); bool getWriteCmdPacket (uint16_t conn_handle);