From e8cbc4c6272f33652185766489417aa1812fa1f2 Mon Sep 17 00:00:00 2001 From: HouzuoGuo Date: Sun, 3 Jan 2021 17:24:28 +0200 Subject: [PATCH] Avoid invoking ENS function in macsniff.cpp when ENS support is disabled --- src/macsniff.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macsniff.cpp b/src/macsniff.cpp index fb38d661..3bce9453 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -161,13 +161,13 @@ uint16_t mac_analyze(MacBuffer_t MacBuffer) { macs_ble++; // increment BLE Macs counter blink_LED(COLOR_MAGENTA, 50); break; - +#if (COUNT_ENS) case MAC_SNIFF_BLE_ENS: macs_ble++; // increment BLE Macs counter cwa_mac_add(hashedmac); // process ENS beacon blink_LED(COLOR_WHITE, 50); break; - +#endif default: break;