mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-03 12:00:59 +00:00
core: add prints to main loop
This commit is contained in:
parent
3fcbf7179b
commit
65ee44b636
@ -48,6 +48,7 @@ int main(void) {
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
printf("CORE: Starting main loop\n");
|
||||
// Stack limit should be less than real stack size, so we have a chance
|
||||
// to recover from limit hit.
|
||||
mp_stack_set_top(&_estack);
|
||||
@ -63,9 +64,11 @@ int main(void) {
|
||||
mp_obj_list_append(mp_sys_path, MP_OBJ_NEW_QSTR(MP_QSTR_)); // current dir (or base dir of the script)
|
||||
|
||||
// Run the main script
|
||||
printf("CORE: Executing main script\n");
|
||||
pyexec_frozen_module("main.py");
|
||||
|
||||
// Run REPL
|
||||
printf("CORE: Executing REPL\n");
|
||||
for (;;) {
|
||||
if (pyexec_friendly_repl() != 0) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user