MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / validTouchCalibration

Function validTouchCalibration

src/settings.cpp:1089–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1087constexpr const char *TOUCH_CAL_NAMESPACE = "touch_cal";
1088
1089bool validTouchCalibration(uint16_t x0, uint16_t x1, uint16_t y0, uint16_t y1) {
1090 return x0 > 0 && x1 > 0 && y0 > 0 && y1 > 0 && x0 != x1 && y0 != y1;
1091}
1092
1093esp_err_t readTouchCalibrationItems(
1094 nvs::NVSHandle &handle, uint16_t &x0, uint16_t &x1, uint16_t &y0, uint16_t &y1, uint8_t &rot

Callers 2

loadTouchCalibrationFunction · 0.85
saveTouchCalibrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected