mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_RCProtocol: flush CRSF telemety writes
This commit is contained in:
parent
eaa414bb0c
commit
89ea5dc12c
@ -306,6 +306,7 @@ void AP_RCProtocol_CRSF::write_frame(Frame* frame)
|
|||||||
frame->payload[frame->length - 2] = crc;
|
frame->payload[frame->length - 2] = crc;
|
||||||
|
|
||||||
uart->write((uint8_t*)frame, frame->length + 2);
|
uart->write((uint8_t*)frame, frame->length + 2);
|
||||||
|
uart->flush();
|
||||||
|
|
||||||
#ifdef CRSF_DEBUG
|
#ifdef CRSF_DEBUG
|
||||||
hal.console->printf("CRSF: writing %s:", get_frame_type(frame->type, frame->payload[0]));
|
hal.console->printf("CRSF: writing %s:", get_frame_type(frame->type, frame->payload[0]));
|
||||||
|
Loading…
Reference in New Issue
Block a user