reduce screen flicker by removing clearlines
This commit is contained in:
parent
9793598104
commit
a65c6f8596
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user