From 5015409af64ca7ca5c0f0e0e28d9f82b0abf5186 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 23 Jan 2021 17:59:06 +0100 Subject: [PATCH] Fix GPIO Not supported message Fix GPIO Not supported message (#10673) --- tasmota/support_command.ino | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tasmota/support_command.ino b/tasmota/support_command.ino index 57821ba70..1798b2135 100644 --- a/tasmota/support_command.ino +++ b/tasmota/support_command.ino @@ -1209,7 +1209,11 @@ void CmndGpio(void) if (jsflg2) { ResponseClear(); } else { - ResponseCmndChar(PSTR(D_JSON_NOT_SUPPORTED)); + if (jsflg) { + ResponseJsonEnd(); + } else { + ResponseCmndChar(D_JSON_NOT_SUPPORTED); + } } } }