Fix unused ret_code2 in xdrv_52_9_berry (#23146)

This commit is contained in:
Bartosz Nitka 2025-03-13 17:22:21 +01:00 committed by GitHub
parent 6d376a079e
commit 9b4eb64caa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -382,7 +382,7 @@ void BerryInit(void) {
}
// AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_BERRY "Berry code loaded, RAM used=%u"), be_gc_memcount(berry.vm));
ret_code2 = be_pcall(berry.vm, 0);
if (ret_code1 != 0) {
if (ret_code2 != 0) {
be_error_pop_all(berry.vm); // clear Berry stack
break;
}