fix bug in presence detection when last device is gone
This commit is contained in:
@@ -40,7 +40,11 @@ void PresenceDetection::update()
|
||||
vTaskDelay( 5000 / portTICK_PERIOD_MS);
|
||||
|
||||
if(_timeout < 0) return;
|
||||
if(_devices.size() == 0) return;
|
||||
if(_devices.size() == 0)
|
||||
{
|
||||
_network->publishPresenceDetection(";;");
|
||||
return;
|
||||
}
|
||||
|
||||
memset(_csv, 0, presence_detection_buffer_size);
|
||||
_csvIndex = 0;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#define nuki_hub_version "2.5"
|
||||
#define nuki_hub_version "2.6"
|
||||
Binary file not shown.
Reference in New Issue
Block a user