Screen changes and fixes (#1651)

* Fixed bluetooth reinit bug

* Remove screen transition ms

* Whoops

* hasScreen is smarter now

* Oops
This commit is contained in:
Ben Meadors
2022-08-25 11:25:05 -05:00
committed by GitHub
parent d7e5eb4d22
commit 1013aff9b6
7 changed files with 9 additions and 21 deletions

View File

@@ -122,8 +122,7 @@ void NimbleBluetooth::shutdown()
bool NimbleBluetooth::isActive()
{
NimBLEAdvertising *pAdvertising = NimBLEDevice::getAdvertising();
return bleServer && (bleServer->getConnectedCount() > 0 || pAdvertising->isAdvertising());
return bleServer;
}
void NimbleBluetooth::setup()