fixed keep alive
This commit is contained in:
parent
7adb446081
commit
d4d42c9f6d
1 changed files with 3 additions and 1 deletions
|
@ -15,8 +15,10 @@ OmobiLedDisplay::OmobiLedDisplay(String deviceName, Adafruit_NeoMatrix *ledDispl
|
||||||
}
|
}
|
||||||
|
|
||||||
void OmobiLedDisplay::loop() {
|
void OmobiLedDisplay::loop() {
|
||||||
if(millis() - lastKeepAlive > this->maximumKeepAliveDelay)
|
if(millis() - lastKeepAlive > this->maximumKeepAliveDelay) {
|
||||||
|
this->lastKeepAlive = millis();
|
||||||
this->bleServer->disconnectCurrentDevice();
|
this->bleServer->disconnectCurrentDevice();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OmobiLedDisplay::onDeviceConnectedChanged(bool deviceConnected)
|
void OmobiLedDisplay::onDeviceConnectedChanged(bool deviceConnected)
|
||||||
|
|
Loading…
Reference in a new issue