Better restart

Add 30s progress to ensure restart is finished
Hide restart boot loader message redirecting serial output
This commit is contained in:
luc
2015-09-16 17:46:36 +08:00
parent 283270f660
commit d663f62605
2 changed files with 5 additions and 2 deletions

View File

@@ -90,7 +90,6 @@ void setup() {
}
//setup serial
Serial.begin(baud_rate);
//Serial1.setDebugOutput(true);
//setup wifi according settings
wifi_config.Setup();
delay(1000);
@@ -186,6 +185,10 @@ uint8_t i,data;
}
if (web_interface->restartmodule)
{
Serial.flush();
delay(500);
Serial.swap();
delay(100);
ESP.restart();
while (1){delay(1);};
}