Skip to content

Conversation

@ramya-subramanyam
Copy link
Collaborator

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

WIFI only multi-board tests are added. single board tests will be added in a new branch

hil checks: https://github.com/Infineon/arduino-core-psoc6/actions/runs/17085546255/job/48448951757
respective test PR: Infineon/arduino-core-tests#69

Signed-off-by: Ramya Subramanyam <ramya.subramanyam@infineon.com>
Signed-off-by: Ramya Subramanyam <ramya.subramanyam@infineon.com>
Copy link
Member

@jaenrig-ifx jaenrig-ifx left a comment

Choose a reason for hiding this comment

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

Nice :)

constexpr uint16_t timeout = 1000; /* 1000 times by 10 ms delay = 10 seconds */
uint16_t timer = 0;
while (scan_results.status == CY_WCM_SCAN_INCOMPLETE || timer < timeout) {
while (scan_results.status == CY_WCM_SCAN_INCOMPLETE && timer < timeout) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change to avoid the timeout?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here a timeout was added to exit the loop after 10 seconds in case the WCM_SCAN_INCOMPLETE occurs.
In the previous logic there was an issue as the code would get stuck in infinite loop because of OR condition. It should have been AND condition here. So that the while loop breaks when timeout occurs.

Signed-off-by: Ramya Subramanyam <ramya.subramanyam@infineon.com>
Signed-off-by: Ramya Subramanyam <ramya.subramanyam@infineon.com>
@ramya-subramanyam ramya-subramanyam merged commit 75e6385 into main Aug 21, 2025
44 of 63 checks passed
@ramya-subramanyam ramya-subramanyam deleted the psoc-ino-unity-tests-hil-setup-wifi branch August 21, 2025 04:50
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.

4 participants