aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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