projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
47fcece
)
Fixed TS calib bug
author
Kevin Townsend
<kevin@ktownsend.com>
Tue, 24 Apr 2012 19:40:38 +0000
(21:40 +0200)
committer
Kevin Townsend
<kevin@ktownsend.com>
Tue, 24 Apr 2012 19:40:38 +0000
(21:40 +0200)
drivers/displays/tft/touchscreen.c
patch
|
blob
|
history
diff --git
a/drivers/displays/tft/touchscreen.c
b/drivers/displays/tft/touchscreen.c
index
1ac7821
..
381976a
100644
(file)
--- a/
drivers/displays/tft/touchscreen.c
+++ b/
drivers/displays/tft/touchscreen.c
@@
-413,20
+413,9
@@
tsTouchError_t tsRead(tsTouchData_t* data, uint8_t calibrating)
tsPoint_t location, touch;
touch.x = x1;
touch.y = y1;
tsPoint_t location, touch;
touch.x = x1;
touch.y = y1;
- // Only calculate the relative LCD value if this isn't for calibration
- if (!calibrating)
- {
- getDisplayPoint( &location, &touch, &_tsMatrix) ;
- data->xlcd = location.x;
- data->ylcd = location.y;
- }
- else
- {
- // Assign some false values, but only xraw and yraw are
- // used for calibration
- data->xlcd = 0;
- data->ylcd = 0;
- }
+ getDisplayPoint( &location, &touch, &_tsMatrix) ;
+ data->xlcd = location.x;
+ data->ylcd = location.y;
data->valid = true;
return TS_ERROR_NONE;
data->valid = true;
return TS_ERROR_NONE;
This page took
0.027009 seconds
and
4
git commands to generate.