From a65c6f85967fb8ceafcb3fe4941b0914b1a5c59d Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Fri, 6 Apr 2018 16:09:01 +0200 Subject: [PATCH] reduce screen flicker by removing clearlines --- src/macsniff.cpp | 4 ++-- src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/macsniff.cpp b/src/macsniff.cpp index 764e6555..21f4682e 100644 --- a/src/macsniff.cpp +++ b/src/macsniff.cpp @@ -110,7 +110,7 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { void BLECount() { ESP_LOGI(TAG, "BLE scan started"); currentScanDevice = 0; // Set 0 seen device on this scan session - //u8x8.clearLine(3); // causes little screen flicker, and seems not needed + //u8x8.clearLine(3); // not needed? u8x8.drawString(0,3,"BLE Scan..."); BLEDevice::init(PROGNAME); BLEScan* pBLEScan = BLEDevice::getScan(); //create new scan @@ -150,6 +150,6 @@ void wifi_sniffer_packet_handler(void* buff, wifi_promiscuous_pkt_type_t type) { } else { ESP_LOGI(TAG, "WiFi RSSI %d -> ignoring (limit: %d)", ppkt->rx_ctrl.rssi, cfg.rssilimit); } - yield(); + //yield(); } diff --git a/src/main.cpp b/src/main.cpp index 0958e5a1..9b75e623 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -274,7 +274,7 @@ void sniffer_loop(void * pvParameters) { 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); + // u8x8.clearLine(3); // not needed? u8x8.setCursor(0,3); // We just state out of BLE scanning if (currentScanDevice) {