commit | 17fc4f9c0ea966929a949e81c27656e4d2b9ea57 | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Tue Feb 06 22:26:56 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Feb 06 22:26:56 2024 +0000 |
tree | f16efff6a39f2abbb74736fa9438605096efa45e | |
parent | d531cdca1114adc31c8ad39693e1bc661a80bdba [diff] |
pw_transfer: Account for remaining_bytes in payload buffer This updates the transfer buffer size reservation to include space for the `remaining_bytes` field if a transfer size is set. Tested: The added unit test fails to encode without the fix, but succeeds with it. Change-Id: I8aae3547117e1ed1e4f6ab6adf3839a807668e53 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/190572 Pigweed-Auto-Submit: Alexei Frolov <frolv@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.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/.