From e63dbcaa3f2197e5c838831888e30d0a741d5b12 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 9 Oct 2025 08:17:47 +0200 Subject: [PATCH] Berry fixed 'be_top is non zero' when `Br` command fails (#23990) --- CHANGELOG.md | 1 + tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dd615b6e4..07cc813ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file. ### Fixed - Berry fixed 'be_top is non zero' warning when calling C mapped functions +- Berry fixed 'be_top is non zero' when `Br` command fails ### Removed diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino index 7fb5a0b1c..38ed4e65b 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_9_berry.ino @@ -523,7 +523,7 @@ void CmndBrRun(void) { be_pop(berry.vm, 1); } else { Response_P(PSTR("{\"" D_PRFX_BR "\":\"[%s] %s\"}"), EscapeJSONString(be_tostring(berry.vm, -2)).c_str(), EscapeJSONString(be_tostring(berry.vm, -1)).c_str()); - be_pop(berry.vm, 2); + be_pop(berry.vm, 3); } checkBeTop();