Skip to content
Snippets Groups Projects
Commit 2e57987c authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Correct off-by-one error in encoder reading

parent 8a293e47
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ SIGNAL(USART_RXC_vect)
}
} break;
case serialio_pollchannel: {
if (serialio_channel < 6) {
if (serialio_channel < 7) {
serial_readchannels |= (1<<serialio_channel);
} else if (serialio_channel == 31) {
serial_readconfig = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment