Commit 268b5e4
🐛 fix: type mismatch in dtp_download_file corrupted payload_id
dtp_prepare_session() expects (uint8_t timeout, uint8_t payload_id,
uint16_t mtu) but we were passing (uint32_t, uint16_t, uint32_t).
The wider types shifted subsequent arguments on the stack, causing
the server to receive payload_id=4 (high byte of mtu=1024) instead
of the actual payload_id=1.
Fix: match dtp_download_file signature to the library's exact types.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent fdce5ef commit 268b5e4
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
0 commit comments