Only show Calibrate button for XPT2046

This commit is contained in:
fvanroie 2021-01-05 23:02:59 +01:00
parent 52af02c413
commit eb42b8515d

View File

@ -1112,8 +1112,10 @@ void webHandleGuiConfig()
httpMessage += F("<p><button type='submit' name='save' value='gui'>Save Settings</button></p></form>");
#if TOUCH_DRIVER == 2046 && USE_TFT_ESPI > 0
httpMessage += PSTR("<p><form method='get' action='/config/gui'><button type='submit' name='action' "
"value='calibrate'>Calibrate</button></form></p>");
#endif
httpMessage +=
PSTR("<p><form method='get' action='/config'><button type='submit'>Configuration</button></form></p>");