aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Bodenmann <joel.bodenmann@hevs.ch>2012-11-09 23:10:38 +0100
committerJoel Bodenmann <joel.bodenmann@hevs.ch>2012-11-09 23:10:38 +0100
commit995c9835c282e8904ff918e325f0491249bdcc89 (patch)
treeec35f3ba7c1366ecc3a955311ac59d49b2e56e41
parent61d2238b259e140164a3d1f54d6144be24dcb08c (diff)
downloaduGFX-995c9835c282e8904ff918e325f0491249bdcc89.tar.gz
uGFX-995c9835c282e8904ff918e325f0491249bdcc89.tar.bz2
uGFX-995c9835c282e8904ff918e325f0491249bdcc89.zip
small macro update
-rw-r--r--src/touchpad.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/touchpad.c b/src/touchpad.c
index 5b8d112e..f06365f7 100644
--- a/src/touchpad.c
+++ b/src/touchpad.c
@@ -303,7 +303,7 @@ void tpCalibrate(void) {
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);
-#if defined(TOUCHPAD_VERIFY_CALIBRATION)
+#if TOUCHPAD_VERIFY_CALIBRATION
calibrate:
for(i = 0; i < 4; i++) {
#else
@@ -345,7 +345,7 @@ calibrate:
/* Apply 3 point calibration algorithm */
_tpDo3PointCalibration(cross, points, cal);
-#if defined(TOUCHPAD_VERIFY_CALIBRATION)
+#if TOUCHPAD_VERIFY_CALIBRATION
/* Verification of correctness of calibration (optional) :
* See if the 4th point (Middle of the screen) coincides with the calibrated
* result. If point is with +/- 2 pixel margin, then successful calibration