fangpeina opened a new pull request, #3370:
URL: https://github.com/apache/nuttx-apps/pull/3370

   ## Summary
   
   Fix buffer offset calculation in ymodem_send_buffer() to correctly handle 
partial writes by advancing the buffer pointer and adjusting the remaining size 
on each retry.
   
   ### Changes:
   - Fix buffer offset in write retry logic: change `write(fd, buf, size)` to 
`write(fd, buf + i, size - i)`
   
   ## Impact
   
   - **Features**: Fixes YMODEM transfer corruption on partial writes
   - **API Changes**: None
   - **Build**: No changes
   - **Hardware**: Affects UART devices with buffer constraints
   - **Documentation**: No changes needed
   - **Security**: No security implications
   - **Compatibility**: Fully backward compatible
   
   ## Testing
   
   Tested on UART with small write buffers. YMODEM file transfers complete 
successfully without corruption.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to