Skip to content

Conversation

@nordic-piks
Copy link
Contributor

Show TX and RX data when there is mismatch.

@github-actions github-actions bot added the area: SPI SPI bus label May 13, 2025
@nordic-piks nordic-piks requested a review from nordic-segl May 13, 2025 07:22
@github-actions github-actions bot requested review from tbursztyka and teburd May 13, 2025 07:22
@nordic-piks nordic-piks force-pushed the more_output_from_spi_controller_peripheral branch from 204d1c0 to 390fb4d Compare May 13, 2025 07:32
@nordic-piks nordic-piks force-pushed the more_output_from_spi_controller_peripheral branch 3 times, most recently from 42a9686 to 159245e Compare May 13, 2025 10:24
@nordic-piks
Copy link
Contributor Author

@tbursztyka Please have a look.

@nordic-piks nordic-piks force-pushed the more_output_from_spi_controller_peripheral branch from 159245e to f54977b Compare May 29, 2025 12:21
@nordic-piks nordic-piks requested a review from tbursztyka May 29, 2025 12:22
@nordic-piks
Copy link
Contributor Author

@tbursztyka Applied your comments, please have a look.

@nordic-piks nordic-piks force-pushed the more_output_from_spi_controller_peripheral branch from f54977b to 43e8c79 Compare May 29, 2025 12:30
Show TX and RX data when there is mismatch.

Signed-off-by: Piotr Kosycarz <piotr.kosycarz@nordicsemi.no>
@nordic-piks nordic-piks force-pushed the more_output_from_spi_controller_peripheral branch from 43e8c79 to 09eefea Compare May 30, 2025 04:33
@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
E Reliability Rating on New Code (required ≥ C)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@nordic-piks
Copy link
Contributor Author

@tbursztyka Any clue how to fix this SonarQube issue?
I did not change this code but relocated thus it is analyzed.
I tried to add more guards but analysis still sees problem.

}

return memcmp(tx_data, rx_data, rx_len);
len = MIN(MIN(rx_len, tx_len), MIN(sizeof(rx_data), sizeof(tx_data)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't the min on rx_len, tx_len be sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that was previous version which I added, still tool was complaning

@nordic-piks nordic-piks closed this Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: SPI SPI bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants