diff --git a/src/du.ino b/src/du.ino index 823ea12..c7ffd5b 100644 --- a/src/du.ino +++ b/src/du.ino @@ -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);