tools/mpremote: Use machine instead of umachine in commands.

Because bare-metal boards will have machine but not always umachine.

Signed-off-by: Damien George <damien@micropython.org>
pull/8196/head
Damien George 2022-01-20 16:35:49 +11:00
rodzic 608d421752
commit ce4f8b49ce
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -80,7 +80,7 @@ _BUILTIN_COMMAND_EXPANSIONS = {
"command": [
"exec",
"--no-follow",
"import utime, umachine; utime.sleep_ms(t_ms); umachine.reset()",
"import utime, machine; utime.sleep_ms(t_ms); machine.reset()",
],
"help": "reset the device after delay",
},
@ -88,7 +88,7 @@ _BUILTIN_COMMAND_EXPANSIONS = {
"command": [
"exec",
"--no-follow",
"import utime, umachine; utime.sleep_ms(t_ms); umachine.bootloader()",
"import utime, machine; utime.sleep_ms(t_ms); machine.bootloader()",
],
"help": "make the device enter its bootloader",
},