summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)