Skip to content

Preserve STM32 SPI CRC errors in Receive status - #485

Open
dajiaohuang wants to merge 1 commit into
AdaCore:masterfrom
dajiaohuang:fix/stm32-spi-crc-receive-status
Open

dajiaohuang wants to merge 1 commit into
AdaCore:masterfrom
dajiaohuang:fix/stm32-spi-crc-receive-status

Conversation

@dajiaohuang

Copy link
Copy Markdown

Summary

The 8-bit and 16-bit STM32 SPI Receive overloads set Err_Error when CRC validation fails, then unconditionally overwrite the result with Ok. Initialize the status to Ok before the CRC check so a detected CRC error is returned to the caller.

Validation

  • git diff --check passed.
  • No Ada compiler/toolchain was available locally, so no build or tests were run.
  • No physical boards/devices were accessed; hardware behavior remains unverified.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants