Fix regression from #24192
This commit is contained in:
parent
ce67a505ca
commit
89cbe5950b
@ -121,7 +121,7 @@ extern "C" {
|
|||||||
int32_t top = be_top(vm); // Get the number of arguments
|
int32_t top = be_top(vm); // Get the number of arguments
|
||||||
if (top == 0 || (top == 1 && be_isint(vm, 1))) { // only 1 argument of type string accepted
|
if (top == 0 || (top == 1 && be_isint(vm, 1))) { // only 1 argument of type string accepted
|
||||||
uint32_t delay = 0;
|
uint32_t delay = 0;
|
||||||
if (top == 2) {
|
if (top == 1) {
|
||||||
delay = be_toint(vm, 1);
|
delay = be_toint(vm, 1);
|
||||||
}
|
}
|
||||||
uint32_t ret_millis = millis() + delay;
|
uint32_t ret_millis = millis() + delay;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user