fixed keep alive

This commit is contained in:
Dorian Zedler 2020-10-15 17:21:44 +02:00
parent 7adb446081
commit d4d42c9f6d
Signed by: dorian
GPG key ID: D3B255CB8BC7CD37

View file

@ -15,8 +15,10 @@ OmobiLedDisplay::OmobiLedDisplay(String deviceName, Adafruit_NeoMatrix *ledDispl
}
void OmobiLedDisplay::loop() {
if(millis() - lastKeepAlive > this->maximumKeepAliveDelay)
if(millis() - lastKeepAlive > this->maximumKeepAliveDelay) {
this->lastKeepAlive = millis();
this->bleServer->disconnectCurrentDevice();
}
}
void OmobiLedDisplay::onDeviceConnectedChanged(bool deviceConnected)