We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 086416b commit 850f8fdCopy full SHA for 850f8fd
TouchControllerWS.cpp
@@ -30,7 +30,7 @@ bool TouchControllerWS::loadCalibration() {
30
31
}
32
f.close();
33
-
+ return true;
34
35
36
bool TouchControllerWS::saveCalibration() {
@@ -40,6 +40,7 @@ bool TouchControllerWS::saveCalibration() {
40
File f = SPIFFS.open("/calibration.txt", "w");
41
if (!f) {
42
Serial.println("file creation failed");
43
+ return false;
44
45
// now write two lines in key/value style with end-of-line characters
46
f.println(dx);
@@ -48,6 +49,7 @@ bool TouchControllerWS::saveCalibration() {
48
49
f.println(ay);
50
51
52
53
54
55
void TouchControllerWS::startCalibration(CalibrationCallback *calibrationCallback) {
0 commit comments