Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion TouchControllerWS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ bool TouchControllerWS::loadCalibration() {

}
f.close();

return true;
}

bool TouchControllerWS::saveCalibration() {
Expand All @@ -39,6 +39,7 @@ bool TouchControllerWS::saveCalibration() {
File f = SPIFFS.open("/calibration.txt", "w");
if (!f) {
Serial.println("file creation failed");
return false;
}
// now write two lines in key/value style with end-of-line characters
f.println(dx);
Expand All @@ -47,6 +48,7 @@ bool TouchControllerWS::saveCalibration() {
f.println(ay);

f.close();
return true;
}

void TouchControllerWS::startCalibration(CalibrationCallback *calibrationCallback) {
Expand Down