Commit 2e57987c authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Correct off-by-one error in encoder reading

parent 8a293e47
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment