mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-22 18:26:30 +00:00
Merge pull request #15937 from s-hadinger/berry_fix_setglobal_false
Berry fix regression
This commit is contained in:
commit
61734674c5
@ -72,7 +72,6 @@ static int m_setglobal(bvm *vm)
|
|||||||
if (top >= 2 && be_isstring(vm, 1)) {
|
if (top >= 2 && be_isstring(vm, 1)) {
|
||||||
const char * name = be_tostring(vm, 1);
|
const char * name = be_tostring(vm, 1);
|
||||||
be_setglobal(vm, name);
|
be_setglobal(vm, name);
|
||||||
be_return(vm);
|
|
||||||
}
|
}
|
||||||
be_return_nil(vm);
|
be_return_nil(vm);
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,8 @@ const char berry_prog[] =
|
|||||||
#ifdef USE_BERRY_PYTHON_COMPAT
|
#ifdef USE_BERRY_PYTHON_COMPAT
|
||||||
// enable python syntax compatibility mode
|
// enable python syntax compatibility mode
|
||||||
"import python_compat "
|
"import python_compat "
|
||||||
"import cb "
|
|
||||||
#endif
|
#endif
|
||||||
|
"import cb "
|
||||||
|
|
||||||
#ifdef USE_ENERGY_SENSOR
|
#ifdef USE_ENERGY_SENSOR
|
||||||
"import energy "
|
"import energy "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user