Commit 74c79f0
amyboard: fix SD card writes failing with EIO (#1065)
The VFS block protocol treats any writeblocks return value other than
None (or 0) as an error. The vendored machine_sdcard.c returned True on
success, so every SD write failed with OSError: [Errno 5] EIO even
though the sectors were never sent to the card. readblocks got this
exact fix in March 2025 (which is why reads/ls work); apply the same
to writeblocks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent cf24d04 commit 74c79f0
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
394 | 400 | | |
395 | 401 | | |
396 | 402 | | |
| |||
0 commit comments