From b766c0ce041de132286f9a786d95712ba1b79717 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 10 Dec 2023 13:16:42 +0300 Subject: [PATCH] fix --- components/esp32_presense/esp32_presense.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/esp32_presense/esp32_presense.cpp b/components/esp32_presense/esp32_presense.cpp index 710ad1c..a1f2b8e 100644 --- a/components/esp32_presense/esp32_presense.cpp +++ b/components/esp32_presense/esp32_presense.cpp @@ -112,13 +112,19 @@ namespace esphome totalFpSeen++; } + ESP_LOGD(TAG, "F", f->getAddress()); + if (f->hasReport()) { - if (reportBuffer(f)) + ESP_LOGD(TAG, "hasReport"); + if (reportBuffer(f)) { + ESP_LOGD(TAG, "reportBuffer"); f->clearReport(); + } } if (this->reportDevice(f)) { + ESP_LOGD(TAG, "reportDevice"); totalFpReported++; reported++; }