-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(serial receiver interface): ✨ Introduce three new callbacks (#134)
Three new callback functions are added to the Serial Receiver Interface: - `onLinkDownCallback` Runs when no CRSF data is received within `CRSF_FAILSAFE_STAGE1_MS` (default is 300 milliseconds), and this may be used to facilitate fail-safe conditions. - `onLinkUpCallback` Runs when a reconnection is established, and this may be used to facilitate fail-safe recovery. - `onRawDataCallback` Runs whenever individual bytes from the raw CRSF data stream is received, and this may be used to facilitate UART pass-through. Signed-off-by: Dmytro <[email protected]> Co-authored-by: Cassandra "ZZ Cat" Robinson <[email protected]>
- Loading branch information
1 parent
d53e151
commit 35c0692
Showing
4 changed files
with
86 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters