fix config portal
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user