Fix warnings

This commit is contained in:
Daniel Gröber 2017-03-06 13:29:53 +01:00
parent 623d50b873
commit 443d81699e
1 changed files with 3 additions and 4 deletions

View File

@ -196,7 +196,7 @@ void startEthernet()
//reads out the status returned by the server and sets the LED's appropriately. //reads out the status returned by the server and sets the LED's appropriately.
//the mode is defied by the intended call: //the mode is defied by the intended call:
int readServerStatus(int mode) { void readServerStatus(int mode) {
char lastsign='0'; char lastsign='0';
boolean readStatus = false; boolean readStatus = false;
while(client.connected()) { while(client.connected()) {
@ -232,7 +232,7 @@ int readServerStatus(int mode) {
} }
// close the connection to the server: // close the connection to the server:
client.stop(); client.stop();
return 0; return;
} }
if(currentLine.startsWith("false", 0)){ if(currentLine.startsWith("false", 0)){
if(debug){Serial.println("");} if(debug){Serial.println("");}
@ -246,7 +246,7 @@ int readServerStatus(int mode) {
} }
// close the connection to the server: // close the connection to the server:
client.stop(); client.stop();
return 0; return;
} }
} }
if (inChar != '\r') {// removes /r so we dan test if the header end with two newlines, hacky but works. 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(){ void readButtons(){
int ret=0;
if((digitalRead(topen)==LOW)&&(hsopen!=1)){ if((digitalRead(topen)==LOW)&&(hsopen!=1)){
//startEthernet(); //startEthernet();
setRoom(2); setRoom(2);