6.3.0.7 Use ESP.reset

6.3.0.7 20181111
 * Fix wifi connection errors using ESP.reset instead of ESP.restart
This commit is contained in:
Theo Arends 2018-11-11 14:28:46 +01:00
parent e76f862b8f
commit a55ec91a10
3 changed files with 11 additions and 7 deletions

View File

@ -1,4 +1,7 @@
/* 6.3.0.6 20181110
/* 6.3.0.7 20181111
* Fix wifi connection errors using ESP.reset instead of ESP.restart
*
* 6.3.0.6 20181110
* Change GUI Configure Module by using AJAX for data fetch to cut page size (and memory use) by 40%
* In case of web page errors clear your browser cache or do Page Reload (F5 or Ctrl+R)
*

View File

@ -20,7 +20,7 @@
#ifndef _SONOFF_VERSION_H_
#define _SONOFF_VERSION_H_
#define VERSION 0x06030006
#define VERSION 0x06030007
#define D_PROGRAMNAME "Sonoff-Tasmota"
#define D_AUTHOR "Theo Arends"

View File

@ -1584,8 +1584,8 @@ void WifiConnect()
wifi_counter = 1;
}
/*
// Enable from 6.0.0a until 6.1.0a - disabled due to possible cause of bad wifi connect on core 2.3.0
// Re-enabled from 6.3.0.7 with ESP.restart replaced by ESP.reset
void WifiDisconnect()
{
// Courtesy of EspEasy
@ -1598,17 +1598,18 @@ void WifiDisconnect()
void EspRestart()
{
// This results in exception 3 on restarts
delay(100); // Allow time for message xfer - disabled v6.1.0b
WifiDisconnect();
ESP.restart();
// ESP.restart(); // This results in exception 3 on restarts on core 2.3.0
ESP.reset();
}
*/
/*
void EspRestart()
{
ESP.restart();
}
*/
/*********************************************************************************************\
* Basic I2C routines