Berry fix regression

This commit is contained in:
Stephan Hadinger 2022-07-06 23:13:35 +02:00
parent 67d3b76c29
commit 389543d36f
2 changed files with 1 additions and 2 deletions

View File

@ -72,7 +72,6 @@ static int m_setglobal(bvm *vm)
if (top >= 2 && be_isstring(vm, 1)) {
const char * name = be_tostring(vm, 1);
be_setglobal(vm, name);
be_return(vm);
}
be_return_nil(vm);
}

View File

@ -31,8 +31,8 @@ const char berry_prog[] =
#ifdef USE_BERRY_PYTHON_COMPAT
// enable python syntax compatibility mode
"import python_compat "
"import cb "
#endif
"import cb "
#ifdef USE_ENERGY_SENSOR
"import energy "