disable presence detection

This commit is contained in:
technyon
2024-07-09 13:30:51 +02:00
parent 8f679c45a5
commit 0a799e1659
3 changed files with 8 additions and 0 deletions

View File

@@ -363,11 +363,13 @@ void setup()
bleScanner->initialize("NukiHub");
bleScanner->setScanDuration(10);
#if PRESENCE_DETECTION_ENABLED
if(preferences->getInt(preference_presence_detection_timeout) >= 0)
{
presenceDetection = new PresenceDetection(preferences, bleScanner, CharBuffer::get(), buffer_size);
presenceDetection->initialize();
}
#endif
lockEnabled = preferences->getBool(preference_lock_enabled);
openerEnabled = preferences->getBool(preference_opener_enabled);