small macro update
This commit is contained in:
parent
61d2238b25
commit
995c9835c2
1 changed files with 2 additions and 2 deletions
|
@ -303,7 +303,7 @@ void tpCalibrate(void) {
|
||||||
|
|
||||||
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);
|
gdispFillStringBox(0, 5, gdispGetWidth(), 30, "Calibration", &fontUI2Double, White, Blue, justifyCenter);
|
||||||
|
|
||||||
#if defined(TOUCHPAD_VERIFY_CALIBRATION)
|
#if TOUCHPAD_VERIFY_CALIBRATION
|
||||||
calibrate:
|
calibrate:
|
||||||
for(i = 0; i < 4; i++) {
|
for(i = 0; i < 4; i++) {
|
||||||
#else
|
#else
|
||||||
|
@ -345,7 +345,7 @@ calibrate:
|
||||||
/* Apply 3 point calibration algorithm */
|
/* Apply 3 point calibration algorithm */
|
||||||
_tpDo3PointCalibration(cross, points, cal);
|
_tpDo3PointCalibration(cross, points, cal);
|
||||||
|
|
||||||
#if defined(TOUCHPAD_VERIFY_CALIBRATION)
|
#if TOUCHPAD_VERIFY_CALIBRATION
|
||||||
/* Verification of correctness of calibration (optional) :
|
/* Verification of correctness of calibration (optional) :
|
||||||
* See if the 4th point (Middle of the screen) coincides with the calibrated
|
* See if the 4th point (Middle of the screen) coincides with the calibrated
|
||||||
* result. If point is with +/- 2 pixel margin, then successful calibration
|
* result. If point is with +/- 2 pixel margin, then successful calibration
|
||||||
|
|
Loading…
Add table
Reference in a new issue