fix config portal

This commit is contained in:
technyon
2022-06-01 20:42:33 +02:00
parent 1ce8eb6603
commit d58f4b6b1d
5 changed files with 57 additions and 48 deletions

View File

@@ -40,6 +40,14 @@ void nukiTask(void *pvParameters)
{
bleScanner->update();
vTaskDelay( 20 / portTICK_PERIOD_MS);
bool needsPairing = (lockEnabled && !nuki->isPaired()) || (openerEnabled && !nukiOpener->isPaired());
if (needsPairing)
{
vTaskDelay( 5000 / portTICK_PERIOD_MS);
}
if(lockEnabled)
{
nuki->update();