Skip to content

Commit

Permalink
Fix String Processing
Browse files Browse the repository at this point in the history
This was preventing digitalWrite and analogWrite from working
  • Loading branch information
liamfraser committed Jun 14, 2015
1 parent 50f8814 commit fefe318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/duino/duino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ void process() {
aux[3] = '\0';
} else {
strncpy(val, messageBuffer + 4, 3);
val[4] = '\0';
val[3] = '\0';
strncpy(aux, messageBuffer + 7, 3);
aux[4] = '\0';
aux[3] = '\0';
}

// Serial.println(cmd);
Expand Down

0 comments on commit fefe318

Please sign in to comment.