Skip to content

Commit

Permalink
fix for Serial comm
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschwartz committed May 14, 2014
1 parent 57e50fa commit 64ce26a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aREST.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ void handle_proto(T serial, bool headers)
//Serial.print(c);

// Check for API key or end of request
if ((c == '\n' || c == '\r')) {
if (c == '\n') {

// API key ?
if(!api_key_received){
Expand Down Expand Up @@ -212,7 +212,7 @@ void handle_proto(T serial, bool headers)
// Get value we want to apply to the pin
value = answer.toInt();

//Serial.println("State " + answer + " set");
//Serial.println(answer);
}

// Declare that the state has been selected
Expand Down

0 comments on commit 64ce26a

Please sign in to comment.