Skip to content

Commit

Permalink
Merge pull request #5 from liamfraser/master
Browse files Browse the repository at this point in the history
Fix String Processing
  • Loading branch information
ni-c committed Sep 16, 2015
2 parents 50f8814 + fefe318 commit a92968a
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 a92968a

Please sign in to comment.