mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-24 03:06:33 +00:00
Add support for P4 GUI Template config
This commit is contained in:
parent
becd0a6ffc
commit
035667327d
@ -2274,7 +2274,11 @@ uint16_t WebGetGpioArg(uint32_t i) {
|
||||
|
||||
void TemplateSaveSettings(void) {
|
||||
char tmp[TOPSZ]; // WebGetArg NAME and GPIO/BASE/FLAG byte value
|
||||
#ifdef ESP8266
|
||||
char command[300]; // Template command string
|
||||
#else
|
||||
char command[500]; // Template command string supporting P4 (55 GPIOs)
|
||||
#endif
|
||||
|
||||
WebGetArg(PSTR("s1"), tmp, sizeof(tmp)); // NAME
|
||||
snprintf_P(command, sizeof(command), PSTR(D_CMND_TEMPLATE " {\"" D_JSON_NAME "\":\"%s\",\"" D_JSON_GPIO "\":["), tmp);
|
||||
|
Loading…
x
Reference in New Issue
Block a user