fix issue #749
This commit is contained in:
parent
08fa703275
commit
d74b236e74
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user