Fix register for sensor fwd2 readout
authorErik Andresen <erik@vontaene.de>
Sat, 3 Jun 2017 11:05:58 +0000 (13:05 +0200)
committerErik Andresen <erik@vontaene.de>
Sat, 3 Jun 2017 11:05:58 +0000 (13:05 +0200)
avr/nano/main.c
avr/nano/main.hex

index 5ba3082..aba8aa1 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 == 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;
 
                                        ireg--; // because we do ireg++ below
                                        TWI_ACK;
index 364e7b3..be5260d 100644 (file)
@@ -21,7 +21,7 @@
 :10014000BB008093280158C08091BB008093290197\r
 :1001500080912901853019F481E080931D018091FF\r
 :100160002901873019F481E080931B0180912901D6\r
 :10014000BB008093280158C08091BB008093290197\r
 :1001500080912901853019F481E080931D018091FF\r
 :100160002901873019F481E080931B0180912901D6\r
-:10017000893019F481E080931C018091290181501C\r
+:100170008B3019F481E080931C018091290181501A\r
 :100180008093290135C0E09129018E2F90E0FC0178\r
 :100190003197EA31F10570F5EC5CFF4F0C94EA06FB\r
 :1001A000809126019091270104C0809124019091B3\r
 :100180008093290135C0E09129018E2F90E0FC0178\r
 :100190003197EA31F10570F5EC5CFF4F0C94EA06FB\r
 :1001A000809126019091270104C0809124019091B3\r