2fb: move variable from global to local scope

This commit is contained in:
Xiretza 2022-08-16 20:48:22 +02:00
parent a7e864b4fb
commit b40fb5fe09

View file

@ -26,7 +26,6 @@ EthernetClient client;
// Twitter response variables // Twitter response variables
#define SERVER_DOMAIN "spaceapi.it-syndikat.org" // URL #define SERVER_DOMAIN "spaceapi.it-syndikat.org" // URL
String currentLine = ""; // string to hold the text from server
// Specific variables // Specific variables
// Status // Status
@ -219,6 +218,8 @@ void startEthernet() {
void readServerStatus(int mode) { void readServerStatus(int mode) {
char lastsign = '0'; char lastsign = '0';
boolean readStatus = false; boolean readStatus = false;
String currentLine = ""; // string to hold the text from server
while (client.connected()) { while (client.connected()) {
if (client.available()) { if (client.available()) {
// read incoming bytes: // read incoming bytes: