Skip to content
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

Fix upstream issue #173 - lost UART packets. #178

Merged
merged 3 commits into from
Jan 9, 2019
Merged

Conversation

Nenik
Copy link
Contributor

@Nenik Nenik commented Sep 1, 2018

In case the application is sending more notifications back-to-back
and the framework has no free buffer slots error code was returned
instead of false, which was interpreted as success.
Return false in such a case, in line with SD buffer overflow handling
below.

In case the application is sending more notifications back-to-back
and the framework has no free buffer slots error code was returned
instead of false, which was interpreted as success.
Return false in such a case, in line with SD buffer overflow handling
below.
Nordic SoftDevice needs to have control over lowest priority interrupts
for reliable, timing sensitive operation. If user code tries to use
such a low priority level, SoftDevice refuses to start.
One way to overcome this limitation is to start the SoftDevice before
attaching pin change interrupts, though in such a case, SD will
cap the effective priority of the user interrupt anyway and it is
a common mistake API users do. This change simply changes the priority
to 2, which is legal (for fast interrupt handlers anyway) under SoftDevice,
no matter if attached before of after SD start.
@hajdbo hajdbo mentioned this pull request Jan 8, 2019
@hathach hathach merged commit 6f09420 into adafruit:master Jan 9, 2019
@hathach
Copy link
Member

hathach commented Jan 9, 2019

Superb !! stupid mistake from me. Thank you very much @Nenik for the PR. Sorry for the super long wait for a simple PR. I was too hooked up with nrf52840, and kind of forgot about this issue.

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.

3 participants