|
|
|
@@ -56,7 +56,7 @@ bool CommandHandler::exec(const char *command, const char *value, uint8_t cid) {
|
|
|
|
if (strEquals(command, "fliptouch")) { config.saveValue(&config.store.fliptouch, static_cast<bool>(atoi(value))); flipTS(); return true; }
|
|
|
|
if (strEquals(command, "fliptouch")) { config.saveValue(&config.store.fliptouch, static_cast<bool>(atoi(value))); flipTS(); return true; }
|
|
|
|
if (strEquals(command, "dbgtouch")) { config.saveValue(&config.store.dbgtouch, static_cast<bool>(atoi(value))); return true; }
|
|
|
|
if (strEquals(command, "dbgtouch")) { config.saveValue(&config.store.dbgtouch, static_cast<bool>(atoi(value))); return true; }
|
|
|
|
if (strEquals(command, "flipscreen")) { config.saveValue(&config.store.flipscreen, static_cast<bool>(atoi(value))); display.flip(); display.putRequest(NEWMODE, CLEAR); display.putRequest(NEWMODE, PLAYER); return true; }
|
|
|
|
if (strEquals(command, "flipscreen")) { config.saveValue(&config.store.flipscreen, static_cast<bool>(atoi(value))); display.flip(); display.putRequest(NEWMODE, CLEAR); display.putRequest(NEWMODE, PLAYER); return true; }
|
|
|
|
if (strEquals(command, "brightness")) { if (!config.store.dspon) netserver.requestOnChange(DSPON, 0); config.store.brightness = static_cast<bool>(atoi(value)); config.setBrightness(true); return true; }
|
|
|
|
if (strEquals(command, "brightness")) { if (!config.store.dspon) netserver.requestOnChange(DSPON, 0); config.store.brightness = static_cast<uint8_t>(atoi(value)); config.setBrightness(true); return true; }
|
|
|
|
if (strEquals(command, "screenon")) { config.setDspOn(static_cast<bool>(atoi(value))); return true; }
|
|
|
|
if (strEquals(command, "screenon")) { config.setDspOn(static_cast<bool>(atoi(value))); return true; }
|
|
|
|
if (strEquals(command, "contrast")) { config.saveValue(&config.store.contrast, static_cast<uint8_t>(atoi(value))); display.setContrast(); return true; }
|
|
|
|
if (strEquals(command, "contrast")) { config.saveValue(&config.store.contrast, static_cast<uint8_t>(atoi(value))); display.setContrast(); return true; }
|
|
|
|
if (strEquals(command, "screensaverenabled")){ config.enableScreensaver(static_cast<bool>(atoi(value))); return true; }
|
|
|
|
if (strEquals(command, "screensaverenabled")){ config.enableScreensaver(static_cast<bool>(atoi(value))); return true; }
|
|
|
|
|