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>
This commit is contained in:
Damien George 2022-01-20 16:35:49 +11:00
parent 608d421752
commit ce4f8b49ce

View File

@ -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",
},