-
Notifications
You must be signed in to change notification settings - Fork 3k
BLE: Fix start scan command not returning error if parameters haven't been set #14511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@paul-szczepanek-arm, thank you for your changes. |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
Hi Note that since this patch, BLE can not compile any more with IAR...
|
With ARM, this makes a warning:
|
Thanks for reporting it. @paul-szczepanek-arm Can you look into this ? The issue seems to be the direct initialization of the |
Sure, I'll make a PR shortly. |
Summary of changes
Cordio doesn't return errors codes which can lead to a problem where start scan fails silently because parameters haven't been set. This additional check makes sure that we don't change scanning state if we know that start scan command will fail (due to unset params). This will return an error to the user if the params haven't been set first.
Impact of changes
Migration actions required
Documentation
none
Pull request type
Test results
Reviewers