Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 micropython#16084. Signed-off-by: Glenn Moloney <[email protected]>
- Loading branch information