main.cpp: bugfix wifi start
This commit is contained in:
		
							parent
							
								
									6bf43cc921
								
							
						
					
					
						commit
						d048b759a8
					
				@ -417,7 +417,7 @@ void setup() {
 | 
				
			|||||||
  // start wifi in monitor mode and start channel rotation timer
 | 
					  // start wifi in monitor mode and start channel rotation timer
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  wifi_sniffer_init();
 | 
					  wifi_sniffer_init();
 | 
				
			||||||
  if (cfg.blescan) {
 | 
					  if (cfg.wifiscan) {
 | 
				
			||||||
    ESP_LOGI(TAG, "Starting Wifi...");
 | 
					    ESP_LOGI(TAG, "Starting Wifi...");
 | 
				
			||||||
    switch_wifi_sniffer(1);
 | 
					    switch_wifi_sniffer(1);
 | 
				
			||||||
  } else
 | 
					  } else
 | 
				
			||||||
@ -526,4 +526,4 @@ void setup() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
} // setup()
 | 
					} // setup()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
void loop() { vTaskDelete(NULL); }
 | 
					void loop() { vTaskDelete(NULL); }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user