From 955d2d86dd4002b373d4471633841602e377f988 Mon Sep 17 00:00:00 2001 From: stefanbode Date: Wed, 27 Sep 2023 16:05:32 +0200 Subject: [PATCH] fix JSON Bug (#19607) --- tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino index 4a33cb32d..a5b77c244 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_27_esp32_shutter.ino @@ -958,7 +958,7 @@ void ShutterReportPosition(bool always, uint32_t index) ShutterLogPos(i); shutter_running++; } - if (i && index == MAX_SHUTTERS) { ResponseAppend_P(PSTR(",")); } + if (i && index == MAX_SHUTTERS_ESP32) { ResponseAppend_P(PSTR(",")); } uint32_t position = ShutterRealToPercentPosition(Shutter[i].real_position, i); uint32_t target = ShutterRealToPercentPosition(Shutter[i].target_position, i); ResponseAppend_P(JSON_SHUTTER_POS, i + 1, (ShutterSettings.shutter_options[i] & 1) ? 100 - position : position, Shutter[i].direction,(ShutterSettings.shutter_options[i] & 1) ? 100 - target : target, Shutter[i].tilt_real_pos );