Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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;
}
