Fix Repetier Boot not displaying IP

Restart with partial end to avoid file corruption
This commit is contained in:
Luc 2020-06-15 17:11:56 +02:00
parent 15367cbd5c
commit b1bcfabc83
3 changed files with 6 additions and 1 deletions

View File

@ -174,6 +174,10 @@ void Esp3D::restart_esp(bool need_restart)
void Esp3D::restart_now()
{
log_esp3d("Restarting");
serial_service.flush();
#if defined(FILESYSTEM_FEATURE)
ESP_FileSystem::end();
#endif //FILESYSTEM_FEATURE
serial_service.swap();
ESP.restart();
while (1) {

View File

@ -22,7 +22,7 @@
#define _VERSION_ESP3D_H
//version and sources location
#define FW_VERSION "3.0.0.a45"
#define FW_VERSION "3.0.0.a46"
#define REPOSITORY "https://github.com/luc-github/ESP3D/tree/3.0"
#endif //_VERSION_ESP3D_H

View File

@ -280,6 +280,7 @@ bool NetServices::begin()
if (!res) {
end();
}
Hal::wait(1000);
output.printMSG(NetConfig::localIP().c_str());
_started = res;
return _started;