Commit 6fa32d5
committed
GetCmdVersion: Don't fall back to v0 if >0xFF
v0 only supports 8 bit command IDs.
I ran into an issue where truncation and then misreporting happened.
I asked claude to fix it and it wanted to just try the command to see
if it fails. After I said that's not a good idea, we need to figure out
what's wrong, it found this issue.
Signed-off-by: Daniel Schaefer <dhs@frame.work>1 parent 1d2ad71 commit 6fa32d5
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
| 304 | + | |
| 305 | + | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
310 | 311 | | |
| 312 | + | |
| 313 | + | |
311 | 314 | | |
312 | 315 | | |
313 | 316 | | |
| |||
0 commit comments