Closed ZZ-Cat closed 3 months ago
Right-oh. Looks like we're good-to-go here.
@krababonga can you check out the associated branch for this Pull Request, flash one of the examples in that branch (with your custom baud rate) onto a compatible development board, and let me know how you get on? TIA.
I checked branch changes on new tracer receiver and old crossfire with ESP32, works like a charm.
I checked branch changes on new tracer receiver and old crossfire with ESP32, works like a charm.
Sweet as. =^/.^=
I'mma go ahead and merge this into the v1.0.x Maintenance Branch.
Anything else comes up, don't hesitate to sing out, yea?
Overview
Resolves #131.
This Pull Request enables the ability to set custom baud rates as a parameter to
sketchLayer::CRSFforArduino::begin()
.In turn, this passes the baud rate to the Serial Receiver Interface, where the physical UART is initialised with your custom baud rate and the expected time to receive a full length frame is automatically adjusted at initialisation to compensate.
For backwards-compatibility, if no parameter is provided in the
begin()
function, CRSF for Arduino defaults to the legacy 420 KB/s baud rate.Code examples
Using the default baud rate
Providing your own baud rate
You MAY pass in your own baud rate as a parameter to
sketchLayer::CRSFforArduino::begin()