lpc55/lpc55-host

Allow accessing ReceiveSbFile progress programatically

Closed this issue · 1 comments

Currently the implementation of ReceiveSbFile displays a progress bar in the terminal if the right feature is enabled (see https://github.com/lpc55/lpc55-host/blob/main/src/bootloader/protocol.rs#L263-L264), however it's currently impossible for non-cli applications to display the upload progress in a sensible manner.

Probably the most universal way of implementing that would be to allow passing a callback that'd be called every chunk.

Will be resolved by #31