Browse Source

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 3 years ago
parent
commit
ce4f8b49ce
  1. 4
      tools/mpremote/mpremote/main.py

4
tools/mpremote/mpremote/main.py

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

Loading…
Cancel
Save