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

Remove interrupt disables; minor bug fixes #571

Merged
merged 8 commits into from
May 12, 2020
Merged

Remove interrupt disables; minor bug fixes #571

merged 8 commits into from
May 12, 2020

Conversation

terrillmoore
Copy link
Member

@terrillmoore terrillmoore commented May 11, 2020

The primary purpose of this PR is to fix #524, allowing the LMIC to run without disabling interrupts at all, and without requiring any changes to underlying BSPs. When configured for interrupts, interrupts simply cause the current time stamp to be captured. The secondary ISR is run as part of os_runloop_once(). This should also fix #503, and address #528, #558, #548, and others.

In addition, since we're updating the radio driver, I addressed #524.

In testing, I discovered a subtle bug with one of our applications that uses LMIC_sendAlive() -- there was a path when sending piggybacked MAC data with a poll that would result in trying to take the port 0 path instead. This caused problems with ChirpStack and TTN, at least. (This is #570.)

Finally, updated to use Arduino IDE 1.8.12 in test.

Version of library changes to v3.1.0.20.

@terrillmoore terrillmoore merged commit 0e67c4e into master May 12, 2020
@terrillmoore terrillmoore deleted the issue568 branch May 12, 2020 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove lengthy interrupt disables Change interrupt disable/timing scheme
1 participant