Skip to content

Commit

Permalink
[bugfix] copy 3 bytes for position data instead of 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cam Pedersen committed Jan 9, 2012
1 parent 815500b commit aceb243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/du.ino
Expand Up @@ -35,7 +35,7 @@ void process() {
strncpy(val, messageBuffer + 4, 2);
val[2] = '\0';
strncpy(aux, messageBuffer + 6, 3);
aux[2] = '\0';
aux[3] = '\0';

if (debug) {
Serial.println(messageBuffer);
Expand Down

0 comments on commit aceb243

Please sign in to comment.