Possible fix
This commit is contained in:
parent
bd9d1e838d
commit
36c857a4be
|
@ -92,7 +92,7 @@ void setup()
|
|||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
data = (char*)ps_malloc(100000);
|
||||
data = (char*)ps_malloc(2000000LL);
|
||||
|
||||
//Initial display settings
|
||||
display.begin();
|
||||
|
|
|
@ -18,7 +18,10 @@ void Network::begin()
|
|||
delay(1000);
|
||||
++cnt;
|
||||
|
||||
if (cnt == 20)
|
||||
WiFi.reconnect();
|
||||
delay(5000);
|
||||
|
||||
if (cnt == 10)
|
||||
{
|
||||
Serial.println("Can't connect to WIFI, restarting");
|
||||
delay(100);
|
||||
|
@ -67,7 +70,10 @@ bool Network::getData(char *data)
|
|||
delay(1000);
|
||||
++cnt;
|
||||
|
||||
if (cnt == 7)
|
||||
WiFi.reconnect();
|
||||
delay(5000);
|
||||
|
||||
if (cnt == 10)
|
||||
{
|
||||
Serial.println("Can't connect to WIFI, restart initiated.");
|
||||
delay(100);
|
||||
|
|
Loading…
Reference in New Issue