Skip to content

Commit fc072e7

Browse files
Apply auto.
1 parent 94eeb9d commit fc072e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boards/XPT2046_ScreenPoint.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ class XPT2046_ScreenPoint : public PARENT_CLASS {
187187
}
188188

189189
bool touched(void) {
190-
SCREEN_POINT p = getPoint(); // PARENT_CLASS::getTouch();
190+
auto p = getPoint(); // PARENT_CLASS::getTouch();
191191
return (SP_RAW_Z(p) >= Z_THRESHOLD);
192192
}
193193
#endif // XPT2046_Bitbang_h
194194

195195
bool getTouch(uint16_t *x, uint16_t *y, uint16_t threshold = Z_THRESHOLD) {
196-
SCREEN_POINT gp = getPoint();
196+
auto gp = getPoint();
197197
if (SP_RAW_Z(gp) >= threshold) {
198198
if (calibrated) {
199199
int16_t xCoord = round((SP_RAW_X(gp) * xCalM) + xCalC);

0 commit comments

Comments
 (0)