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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| commands.py | ||
| console.py | ||
| main.py | ||
| mip.py | ||
| repl.py | ||
| transport_serial.py | ||
| transport.py | ||