Jesús Torres
/
ADNS9500
Interface to access to Avago ADNS-9500 laser mouse sensors.
Revision 12:61b07ad45dc1, committed 2012-09-29
- Comitter:
- aplatanado
- Date:
- Sat Sep 29 22:36:29 2012 +0000
- Parent:
- 11:07a39997a421
- Child:
- 13:6d0642367fc1
- Commit message:
- Fix legacy code detected thanks to Daniel ?kesson
Changed in this revision
adns9500.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/adns9500.cpp Thu Jul 12 13:56:54 2012 +0000 +++ b/adns9500.cpp Sat Sep 29 22:36:29 2012 +0000 @@ -301,12 +301,12 @@ WAIT_TSRR(); int dxl = spiReceive(DELTA_X_L); WAIT_TSRR(); - dx += ADNS9500_INT16(spiReceive(DELTA_X_H), dxl); + dx = ADNS9500_INT16(spiReceive(DELTA_X_H), dxl); WAIT_TSRR(); int dyl = spiReceive(DELTA_Y_L); WAIT_TSRR(); - dy += ADNS9500_INT16(spiReceive(DELTA_Y_H), dyl); + dy = ADNS9500_INT16(spiReceive(DELTA_Y_H), dyl); } WAIT_TSCLKNCS();