Skip to content
Snippets Groups Projects
Commit 46028282 authored by emorgan's avatar emorgan
Browse files

move wifi mode settings to init function

parent 27cb954b
No related branches found
No related tags found
No related merge requests found
......@@ -78,9 +78,6 @@ void VizBlock::wifi_connect()
return;
}
WiFi.mode(WIFI_STA);
WiFi.setSleepMode(WIFI_NONE_SLEEP);
// Connect to WiFi access point.
Serial.println();
Serial.print("Connecting to ");
......@@ -209,6 +206,8 @@ void VizBlock::init()
pinMode(D4, OUTPUT);
pinMode(D0, OUTPUT);
digitalWrite(D4, LOW);
WiFi.mode(WIFI_STA);
WiFi.setSleepMode(WIFI_NONE_SLEEP);
if( _wifi )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment