Commit 0a3bf40
usb-device-mtp: Improve string handling and add conditional debug logging
- Add helper method _write_mtp_string for consistent UTF-16 string formatting
- Add debug flag to enable/disable verbose logging (default: off)
- Convert print statements to use the new _log helper method
- Improve large file transfer handling with better buffer management
- Add progress reporting for large file transfers
- Update example to demonstrate debug flag usage
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4ba8b1d commit 0a3bf40
File tree
2 files changed
+196
-153
lines changed- micropython/usb
- examples/device
- usb-device-mtp/usb/device
2 files changed
+196
-153
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
0 commit comments