summaryrefslogtreecommitdiff
path: root/src/ble.cpp
diff options
context:
space:
mode:
authoruvok2026-05-02 18:38:13 +0200
committeruvok2026-05-02 18:38:13 +0200
commitbcd5e8d9492e77f5539070069a945b1ce29df345 (patch)
tree82cc06ee105170686483b4aebea16564732b45f6 /src/ble.cpp
parentef22d7a63df4e291630209414f3763aa99c825f6 (diff)
Update deps + un-deprecate
Diffstat (limited to 'src/ble.cpp')
-rw-r--r--src/ble.cpp4
1 files changed, 2 insertions, 2 deletions
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<uint16_t>(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)