From 5df4b7b391cba2a03601c827a62dd24e00e32bdd Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 1 May 2020 17:52:01 +0200 Subject: [PATCH] Fix ESP32 template upload --- tasmota/support.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 0a8fec164..ff767caf6 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1346,11 +1346,11 @@ bool JsonTemplate(const char* dataBuf) } } if (obj[D_JSON_FLAG].success()) { - uint8_t flag = obj[D_JSON_FLAG] | 0; + uint32_t flag = obj[D_JSON_FLAG] | 0; memcpy(&Settings.user_template.flag, &flag, sizeof(gpio_flag)); } if (obj[D_JSON_BASE].success()) { - uint8_t base = obj[D_JSON_BASE]; + uint32_t base = obj[D_JSON_BASE]; if ((0 == base) || !ValidTemplateModule(base -1)) { base = 18; } Settings.user_template_base = base -1; // Default WEMOS }