commit | 15e2b1eee1083f0948e9253255535d5c8fe37eb5 | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Nov 24 08:40:03 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Dec 01 18:49:46 2021 +0000 |
tree | 74327e63488bff382387d11c2486a6143ee8db5c | |
parent | 4cfc5a26c54dafd2a4dae1e10c56548b4b46b534 [diff] |
pw_transfer: Support filling a receive buffer Previously, transfers would fail if the client set pending_bytes to 0, even if there were no more bytes to send. This made it impossible for the C++ client to completely fill its receive buffer. This change permits the receiver to set pending_bytes to 0. The transfer aborts with an error if there is still data to send, but completes successfully if there is no more data. Change-Id: Idf0aa5a785efb60a8332131c49c4ae2a5ff81064 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/70883 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/