This commit is contained in:
cyberman54 2021-02-25 19:04:55 +01:00
parent 08fa703275
commit d74b236e74

View File

@ -73,9 +73,9 @@ void wifi_sniffer_init(void) {
esp_wifi_set_promiscuous_rx_cb(&wifi_sniffer_packet_handler); esp_wifi_set_promiscuous_rx_cb(&wifi_sniffer_packet_handler);
// setup wifi channel hopping timer // setup wifi channel hopping timer
WifiChanTimer = WifiChanTimer = xTimerCreate("WifiChannelTimer",
xTimerCreate("WifiChannelTimer", (cfg.wifichancycle > 0)
(cfg.wifichancycle > 0) ? pdMS_TO_TICKS(cfg.wifichancycle) ? pdMS_TO_TICKS(cfg.wifichancycle * 10)
: pdMS_TO_TICKS(50), : pdMS_TO_TICKS(50),
pdTRUE, (void *)0, switchWifiChannel); pdTRUE, (void *)0, switchWifiChannel);
} }