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
|
// 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:
|
||||||
|
|
Reference in a new issue