mirror of
https://github.com/luc-github/ESP3D.git
synced 2025-10-31 11:56:48 -07:00
Better restart
Add 30s progress to ensure restart is finished Hide restart boot loader message redirecting serial output
This commit is contained in:
@@ -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);};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user