Skip to content

Commit 334879d

Browse files
committed
Updated IP5 Crypto tracker example
1 parent 17bb965 commit 334879d

File tree

2 files changed

+1
-26
lines changed

2 files changed

+1
-26
lines changed

examples/Inkplate5/Projects/Inkplate5_Crypto_Currency_Tracker/Inkplate5_Crypto_Currency_Tracker.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void drawAll();
120120

121121
void setup()
122122
{
123-
// Begin serial communitcation, sed for debugging
123+
// Begin serial communication, used for debugging
124124
Serial.begin(115200);
125125

126126
// Initial display settings

examples/Inkplate5/Projects/Inkplate5_Crypto_Currency_Tracker/Network.cpp

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -113,31 +113,6 @@ bool Network::getData(double *data, char * currency)
113113

114114
bool f = 0;
115115

116-
// If not connected to wifi reconnect wifi
117-
if (WiFi.status() != WL_CONNECTED)
118-
{
119-
WiFi.reconnect();
120-
121-
delay(5000);
122-
123-
int cnt = 0;
124-
Serial.println(F("Waiting for WiFi to reconnect..."));
125-
while ((WiFi.status() != WL_CONNECTED))
126-
{
127-
// Prints a dot every second that wifi isn't connected
128-
Serial.print(F("."));
129-
delay(1000);
130-
++cnt;
131-
132-
if (cnt == 7)
133-
{
134-
Serial.println("Can't connect to WIFI, restart initiated.");
135-
delay(100);
136-
ESP.restart();
137-
}
138-
}
139-
}
140-
141116
// Wake up if sleeping and save inital state
142117
bool sleep = WiFi.getSleep();
143118
WiFi.setSleep(false);

0 commit comments

Comments
 (0)