Berry fixed 'be_top is non zero' when Br command fails (#23990)

This commit is contained in:
s-hadinger 2025-10-09 08:17:47 +02:00 committed by GitHub
parent cdc9af224b
commit e63dbcaa3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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();