roll: pigweed, pw_toolchain: pw_transfer: Always set protocol version in final chunk

This ensures that a protocol version is always set when a transfer sends
its final chunk, even if one has not been yet configured through the
handshake. In these cases, uses the client's desired protocol version.

Additionally, fixes a bug where a chunk received in a COMPLETED state
went through a protocol version check in receive transfers, overriding
the original status with INTERNAL. Transmit transfers were already
correctly handling this by avoiding the protocol version check in this
state.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/229289
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>

https://pigweed.googlesource.com/pigweed/pigweed
pigweed, pw_toolchain Rolled-Commits: c9d5bef2f82612f..3d7d7635281155e
Roller-URL: https://ci.chromium.org/b/8739623411184489793
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ied4bd46f5b004f12443de4e5c2b901b89b8edf89
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/229592
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
1 file changed
tree: 363f2d4d3b23b871ae67df6fe26a0c6ad4b46b6f
  1. .github/
  2. .vscode/
  3. apps/
  4. device/
  5. modules/
  6. system/
  7. targets/
  8. tools/
  9. web_app/
  10. .bazelignore
  11. .bazelrc
  12. .bazelversion
  13. .buildifier.json
  14. .clang-format
  15. .clangd.shared
  16. .gitignore
  17. .pw_console.yaml
  18. AUTHORS
  19. BUILD.bazel
  20. CONTRIBUTING.md
  21. LICENSE
  22. MODULE.bazel
  23. OWNERS
  24. pigweed.json
  25. README.md
README.md

Sense

git clone https://pigweed.googlesource.com/pigweed/showcase/sense

Welcome to Pigweed Sense, a tour of key Pigweed components experienced through an imagined air quality product.

Please visit Sense: An interactive tour through Pigweed to get started.