From b40fb5fe098d1e538cf3d7760bb24a5a1f1a9e79 Mon Sep 17 00:00:00 2001 From: Xiretza Date: Tue, 16 Aug 2022 20:48:22 +0200 Subject: [PATCH] 2fb: move variable from global to local scope --- ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino index 2dc749e..8ed7a9f 100644 --- a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino +++ b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino @@ -26,7 +26,6 @@ EthernetClient client; // Twitter response variables #define SERVER_DOMAIN "spaceapi.it-syndikat.org" // URL -String currentLine = ""; // string to hold the text from server // Specific variables // Status @@ -219,6 +218,8 @@ void startEthernet() { void readServerStatus(int mode) { char lastsign = '0'; boolean readStatus = false; + String currentLine = ""; // string to hold the text from server + while (client.connected()) { if (client.available()) { // read incoming bytes: