A basic graphics package for the LPC4088 Display Module.
Dependents: lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI lpc4088_displaymodule_fs_aid ... more
Fork of DMBasicGUI by
Diff: Application/AppTouchCalibration.cpp
- Revision:
- 4:a73760d09423
- Parent:
- 3:3fabfe3339b8
- Child:
- 8:19a6b70d42b1
--- a/Application/AppTouchCalibration.cpp Fri Dec 19 09:12:51 2014 +0100 +++ b/Application/AppTouchCalibration.cpp Fri Dec 19 16:40:30 2014 +0100 @@ -90,7 +90,7 @@ int point = 0; do { - if (!_touch->calibrateStart()) { + if (_touch->calibrateStart() != TouchPanel::TouchError_Ok) { showStatus("Failed to start calibration\n"); break; } @@ -99,7 +99,7 @@ // erase old location drawMarker(x, y, true); } - if (!_touch->getNextCalibratePoint(&x, &y, &lastPoint)) { + if (_touch->getNextCalibratePoint(&x, &y, &lastPoint) != TouchPanel::TouchError_Ok) { showStatus("Failed to get calibration point\n"); break; } @@ -108,7 +108,7 @@ showStatus("Last calibration point. After this the data will"); showStatus("be saved, which can take a couple of seconds!", 1); } - if (!_touch->waitForCalibratePoint(&morePoints, 0)) { + if (_touch->waitForCalibratePoint(&morePoints, 0) != TouchPanel::TouchError_Ok) { showStatus("Failed to get user click\n"); break; }