diff --git a/BleKeyboard.cpp b/BleKeyboard.cpp index 48a8930..9b53eb9 100644 --- a/BleKeyboard.cpp +++ b/BleKeyboard.cpp @@ -524,9 +524,9 @@ void BleKeyboard::onDisconnect(BLEServer* pServer) { desc = (BLE2902*)this->inputMediaKeys->getDescriptorByUUID(BLEUUID((uint16_t)0x2902)); desc->setNotifications(false); - advertising->start(); - #endif // !USE_NIMBLE + + advertising->start(); } void BleKeyboard::onWrite(BLECharacteristic* me) {