commit | 9a41bfeb2355143d3d2fb3d8f78a9b973ba809f7 | [log] [tgz] |
---|---|---|
author | Scott James Remnant <keybuk@google.com> | Mon Jun 13 11:08:27 2022 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jun 13 23:26:25 2022 +0000 |
tree | 70f5aedbca8a2bc5e0ff3f5f997b213a8dafb34d | |
parent | 19f3a3d1077c6fcccbd527a5aced0e8c4c02f6ab [diff] |
pw_protobuf: Don't write empty fixed sized fields Fixed sized fields are an implementation detail of pw_protobuf, and should behave identically on-wire to those implemented with pw::Vector. This means not encoding when they have a zero (default) value, for compatibility with other protobuf implementations. Confirmation that this is correct behavior is that after this, tests for certain fields no longer need to include expected zero values of random other fields. Change-Id: I7f69d0fd1385c80000bbd28dc992123517e171d3 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/97901 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Pigweed-Auto-Submit: Scott James Remnant <keybuk@google.com> Reviewed-by: Armando Montanez <amontanez@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/