From: Erik Andresen Date: Sat, 3 Jun 2017 11:05:58 +0000 (+0200) Subject: Fix register for sensor fwd2 readout X-Git-Url: https://defiant.homedns.org/gitweb/?a=commitdiff_plain;h=ebe8b9669caa6d895b037231c2f66c104ac648a4;p=ros_wild_thumper.git Fix register for sensor fwd2 readout --- diff --git a/avr/nano/main.c b/avr/nano/main.c index 5ba3082..aba8aa1 100644 --- a/avr/nano/main.c +++ b/avr/nano/main.c @@ -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; diff --git a/avr/nano/main.hex b/avr/nano/main.hex index 364e7b3..be5260d 100644 --- a/avr/nano/main.hex +++ b/avr/nano/main.hex @@ -21,7 +21,7 @@ :10014000BB008093280158C08091BB008093290197 :1001500080912901853019F481E080931D018091FF :100160002901873019F481E080931B0180912901D6 -:10017000893019F481E080931C018091290181501C +:100170008B3019F481E080931C018091290181501A :100180008093290135C0E09129018E2F90E0FC0178 :100190003197EA31F10570F5EC5CFF4F0C94EA06FB :1001A000809126019091270104C0809124019091B3