From d74b236e748fa8ee651f312c05c6eb496c775fd5 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Thu, 25 Feb 2021 19:04:55 +0100 Subject: [PATCH] fix issue #749 --- src/wifiscan.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wifiscan.cpp b/src/wifiscan.cpp index c876803c..f57aab90 100644 --- a/src/wifiscan.cpp +++ b/src/wifiscan.cpp @@ -73,11 +73,11 @@ void wifi_sniffer_init(void) { esp_wifi_set_promiscuous_rx_cb(&wifi_sniffer_packet_handler); // setup wifi channel hopping timer - WifiChanTimer = - xTimerCreate("WifiChannelTimer", - (cfg.wifichancycle > 0) ? pdMS_TO_TICKS(cfg.wifichancycle) - : pdMS_TO_TICKS(50), - pdTRUE, (void *)0, switchWifiChannel); + WifiChanTimer = xTimerCreate("WifiChannelTimer", + (cfg.wifichancycle > 0) + ? pdMS_TO_TICKS(cfg.wifichancycle * 10) + : pdMS_TO_TICKS(50), + pdTRUE, (void *)0, switchWifiChannel); } void switch_wifi_sniffer(uint8_t state) {