]> defiant.homedns.org Git - ros_wild_thumper.git/blobdiff - avr/nano/main.c
Fix register for sensor fwd2 readout
[ros_wild_thumper.git] / avr / nano / main.c
index 5ba30821e26227f6e936fede523b2d80b3dd4964..aba8aa1a2114c5b9c0d5ed433d233ceb4395e5ec 100644 (file)
@@ -68,7 +68,7 @@ ISR(TWI_vect)
 
                                        if (ireg == 0x05) start_dist_fwd1=1;
                                        if (ireg == 0x07) start_dist_bwd=1;
-                                       if (ireg == 0x09) start_dist_fwd2=1;
+                                       if (ireg == 0x0b) start_dist_fwd2=1;
 
                                        ireg--; // because we do ireg++ below
                                        TWI_ACK;