update bsp/stm32g070cb/Booter/main.c.

This commit is contained in:
李昂 2022-03-18 14:25:01 +00:00 committed by Gitee
parent 60226dca5c
commit 7deea0a42e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -118,9 +118,7 @@ int main(void){
__pikaMain = pikaMain;
if (code[0] == 'i') {
printf("[info]: boot from Script.\r\n");
Arg* codeBuff = arg_setStr(NULL, "", code);
obj_run(pikaMain, arg_getStr(codeBuff));
arg_deinit(codeBuff);
obj_run(pikaMain, code);
goto main_loop;
}
} else {