From 443d81699ee62b9498d6d821bc7d7a600f168ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Mon, 6 Mar 2017 13:29:53 +0100 Subject: [PATCH] Fix warnings --- ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino index 358c62f..b73d57d 100644 --- a/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino +++ b/ITS_Open_direct_2fb/ITS_Open_direct_2fb.ino @@ -196,7 +196,7 @@ void startEthernet() //reads out the status returned by the server and sets the LED's appropriately. //the mode is defied by the intended call: -int readServerStatus(int mode) { +void readServerStatus(int mode) { char lastsign='0'; boolean readStatus = false; while(client.connected()) { @@ -232,7 +232,7 @@ int readServerStatus(int mode) { } // close the connection to the server: client.stop(); - return 0; + return; } if(currentLine.startsWith("false", 0)){ if(debug){Serial.println("");} @@ -246,7 +246,7 @@ int readServerStatus(int mode) { } // close the connection to the server: client.stop(); - return 0; + return; } } if (inChar != '\r') {// removes /r so we dan test if the header end with two newlines, hacky but works. @@ -331,7 +331,6 @@ void TriggerServerUpdate(boolean stat) { } void readButtons(){ - int ret=0; if((digitalRead(topen)==LOW)&&(hsopen!=1)){ //startEthernet(); setRoom(2);