Possible fix

This commit is contained in:
nitko12 2020-08-28 10:19:56 +02:00
parent bd9d1e838d
commit 36c857a4be
2 changed files with 9 additions and 3 deletions

View File

@ -92,7 +92,7 @@ void setup()
{
Serial.begin(115200);
data = (char*)ps_malloc(100000);
data = (char*)ps_malloc(2000000LL);
//Initial display settings
display.begin();

View File

@ -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);