diff options
author | Joel Bodenmann <joel@unormal.org> | 2012-11-28 23:59:30 +0100 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2012-11-28 23:59:30 +0100 |
commit | b1b117bffa149c05e1cb7f131c8893e02d232643 (patch) | |
tree | c9fa7319979917fe86a8326d97b8c1e8a7212510 /drivers/ginput/touch/ADS7843/ginput_lld_mouse.c | |
parent | 7b2e0d06d4cd8a472a9162460f5cf8d2d263cee4 (diff) | |
download | uGFX-b1b117bffa149c05e1cb7f131c8893e02d232643.tar.gz uGFX-b1b117bffa149c05e1cb7f131c8893e02d232643.tar.bz2 uGFX-b1b117bffa149c05e1cb7f131c8893e02d232643.zip |
ADS7843 fix
Diffstat (limited to 'drivers/ginput/touch/ADS7843/ginput_lld_mouse.c')
-rw-r--r-- | drivers/ginput/touch/ADS7843/ginput_lld_mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c index 5e390399..9c1a582b 100644 --- a/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c +++ b/drivers/ginput/touch/ADS7843/ginput_lld_mouse.c @@ -119,7 +119,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt) { sampleBuf[i] = read_value(0xD1);
read_value(0xD0);
filter();
- lastx = 42;//(coord_t)sampleBuf[3];
+ lastx = (coord_t)sampleBuf[3];
/* Get the Y value using the same process as above */
read_value(0x91);
@@ -127,7 +127,7 @@ void ginput_lld_mouse_get_reading(MouseReading *pt) { sampleBuf[i] = read_value(0x91);
read_value(0x90);
filter();
- lasty = 42;//(coord_t)sampleBuf[3];
+ lasty = (coord_t)sampleBuf[3];
// Release the bus
release_bus();
|