micropython/tools/mpremote/mpremote
Glenn Moloney 9ea8d2a031 tools/mpremote: Fix UnboundLocalError in Transport.fs_writefile().
The variable `written` was being used before it was defined in the
`fs_writefile()` method of the Transport class.  This was causing an
`UnboundLocalError` to be raised when the `progress_callback` was not
provided.

Fixes issue #16084.

Signed-off-by: Glenn Moloney <glenn.moloney@gmail.com>
2024-10-28 12:23:10 +11:00
..
__init__.py tools/mpremote: Use hatch to build mpremote package. 2023-02-24 11:40:22 +11:00
__main__.py tools/mpremote: Allow running mpremote with python -m. 2022-03-30 15:29:26 +11:00
commands.py tools/mpremote: Add option to force copy. 2024-10-09 16:39:06 +11:00
console.py all: Fix cases of Python variable assigned but never used. 2023-05-02 16:36:05 +10:00
main.py tools/mpremote: Add option to force copy. 2024-10-09 16:39:06 +11:00
mip.py tools/mpremote: Make filesystem commands use transport API. 2024-10-09 16:12:30 +11:00
repl.py tools/mpremote: Detach mpremote from pyboard.py. 2023-06-02 17:42:13 +10:00
transport_serial.py tools: Only issue a single Ctrl-C when entering raw REPL. 2024-10-15 11:40:08 +11:00
transport.py tools/mpremote: Fix UnboundLocalError in Transport.fs_writefile(). 2024-10-28 12:23:10 +11:00