2fb: move variable from global to local scope
This commit is contained in:
parent
a7e864b4fb
commit
b40fb5fe09
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue