Commit 00e86e9
eth-ota: sync uploader result codes with firmware enum
The previous commit moved OTA_ERR_TIMEOUT from 0x06 to 0x08 to free
0x06 for OTA_ACK, but bin/eth-ota-upload.py still mapped 0x06 to
"Timeout" — so a real timeout from the device (0x08) was printed as
"Unknown result 0x08" instead of being identified.
Align the mapping with the full OTAResponse enum in ethOTA.cpp:
keep 0x00–0x03, remove the stale 0x06, and add 0x04 (magic),
0x05 (begin), 0x07 (auth), 0x08 (timeout) so every firmware response
prints a human-readable message.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 501bd0b commit 00e86e9
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
| |||
0 commit comments