From bcd5e8d9492e77f5539070069a945b1ce29df345 Mon Sep 17 00:00:00 2001 From: uvok Date: Sat, 2 May 2026 18:38:13 +0200 Subject: Update deps + un-deprecate --- platformio.ini | 4 ++-- src/ble.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platformio.ini b/platformio.ini index 3091b19..16326ae 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,8 +16,8 @@ platform = espressif32 framework = arduino monitor_speed = 115200 lib_deps = - zinggjm/GxEPD2@^1.6.4 - h2zero/NimBLE-Arduino@^2.3.2 + zinggjm/GxEPD2@^1.6.9 + h2zero/NimBLE-Arduino@^2.5.0 [env:esp32dev] board = esp32dev diff --git a/src/ble.cpp b/src/ble.cpp index 854ac82..9425686 100644 --- a/src/ble.cpp +++ b/src/ble.cpp @@ -105,8 +105,6 @@ void de::uvok::badge::ble_init(void) const uint16_t mtuLen = max(s.length() + 16, 256); NimBLEDevice::setMTU(mtuLen); - service->start(); - server->addService(service); pAdvertising = NimBLEDevice::getAdvertising(); @@ -116,6 +114,8 @@ void de::uvok::badge::ble_init(void) LOG_F("Finished advertising\n"); ble_indicator = DisplayIndicator::None; }); + + server->start(); } bool de::uvok::badge::ble_is_active(void) -- cgit v1.2.3