Skip to content

Commit b07fb2e

Browse files
Merge pull request #108 from nahuel/fix-i2c-stop
Fixed a bug when removing a monitored device with I2C_STOP_READING from
2 parents dca2782 + 1d5350d commit b07fb2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/StandardFirmata/StandardFirmata.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ void sysexCallback(byte command, byte argc, byte *argv)
402402
for (byte i = queryIndexToSkip; i<queryIndex + 1; i++) {
403403
if (i < MAX_QUERIES) {
404404
query[i].addr = query[i+1].addr;
405-
query[i].reg = query[i+1].addr;
405+
query[i].reg = query[i+1].reg;
406406
query[i].bytes = query[i+1].bytes;
407407
}
408408
}

0 commit comments

Comments
 (0)