Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
37989e25ae | |||
922dbf98b9 | |||
34089f1add | |||
4c710f7a0a | |||
b766c0ce04 |
@@ -78,6 +78,7 @@ namespace esphome
|
||||
{
|
||||
BleFingerprintCollection::Setup();
|
||||
xTaskCreatePinnedToCore(scanTask, "scanTask", SCAN_TASK_STACK_SIZE, nullptr, 1, &scanTaskHandle, CONFIG_BT_NIMBLE_PINNED_TO_CORE);
|
||||
publishDevices = true;
|
||||
}
|
||||
|
||||
void ESP32Presense::loop()
|
||||
@@ -112,13 +113,19 @@ namespace esphome
|
||||
totalFpSeen++;
|
||||
}
|
||||
|
||||
ESP_LOGD(TAG, "F %s", f->getAddress().toString().c_str());
|
||||
|
||||
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++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user