Signed-off-by: Krzysztof Królczyk <Krzysztof.Krolczyk@o2.pl>
This commit adds logging to embassy-dfu-usb which helps with debugging issues such as https://github.com/embassy-rs/embassy/issues/3536. It also cleans up a few repeated code blocks and avoid re-initialising the local buffer for every iteration.