Fixed shitty nimble logging

This commit is contained in:
2021-05-29 01:21:34 +02:00
parent df4eb9f7d8
commit 7f853fa04b
2 changed files with 2 additions and 3 deletions

View File

@ -783,6 +783,8 @@ NimBLEAddress NimBLEDevice::getWhiteListAddress(size_t index) {
// Set the device name.
rc = ble_svc_gap_device_name_set(deviceName.c_str());
if (rc != 0)
NIMBLE_LOGE(LOG_TAG, "ble_svc_gap_device_name_set() failed %i name_size=%zd", rc, deviceName.size());
assert(rc == 0);
ble_store_config_init();

View File

@ -10,8 +10,6 @@
#include "sdkconfig.h"
#if defined(CONFIG_BT_ENABLED)
#if defined(ARDUINO_ARCH_ESP32) && !defined(DONT_USE_ARDUINO_BULLSHIT)
#include "syscfg/syscfg.h"
#include "modlog/modlog.h"
@ -62,5 +60,4 @@
#endif /*ARDUINO_ARCH_ESP32*/
#endif /*CONFIG_BT_ENABLED*/
#endif /*MAIN_NIMBLELOG_H_*/