diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 7f53bd33..62ac5141 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -92,14 +92,12 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { void onResult(BLEAdvertisedDevice advertisedDevice) { int lastcount = (int) macs.size(); uint8_t *p = (uint8_t *) advertisedDevice.getAddress().getNative(); - // Current devices seen on this scan session currentScanDevice++; // add this device and refresh display if it was not previously added if ( mac_add(p, advertisedDevice.getRSSI(), MAC_SNIFF_BLE) ) { char buff[16]; snprintf(buff, sizeof(buff), "PAX:%-4d", (int) macs.size()); // convert 16-bit MAC counter to decimal counter value - u8x8.setCursor(0,0); u8x8.draw2x2String(0, 0, buff); // display number on unique macs total Wifi + BLE } u8x8.setCursor(11,3); diff --git a/src/main.cpp b/src/main.cpp index f91e1dc5..7b8c637f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -272,9 +272,7 @@ void sniffer_loop(void * pvParameters) { ESP_LOGI(TAG, "Wifi set channel %d", channel); snprintf(buff, sizeof(buff), "PAX:%d", (int) macs.size()); // convert 16-bit MAC counter to decimal counter value - u8x8.setCursor(0,0); u8x8.draw2x2String(0, 0, buff); // display number on unique macs total Wifi + BLE - // u8x8.clearLine(3); // not needed? u8x8.setCursor(0,3); // We just state out of BLE scanning if (currentScanDevice) {