Skip to content

Commit

Permalink
pad bit testing
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 committed Feb 25, 2020
1 parent cc33c8d commit a4b1bc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Frsky_Telem/AP_Frsky_Telem.cpp
Expand Up @@ -523,6 +523,7 @@ void AP_Frsky_Telem::send_byte(uint8_t byte)
}
} else { // FrSky SPort protocol (X-receivers)
if (byte == START_STOP_SPORT) {
_port->write(0xff);
_port->write(0x7D);
_port->write(0x5E);
} else if (byte == BYTESTUFF_SPORT) {
Expand All @@ -547,6 +548,7 @@ void AP_Frsky_Telem::send_uint32(uint8_t frame, uint16_t id, uint32_t data)
external_data.pending = true;
return;
}
_port->write(0xff);
send_byte(frame); // frame type
uint8_t *bytes = (uint8_t*)&id;
send_byte(bytes[0]); // LSB
Expand Down

0 comments on commit a4b1bc5

Please sign in to comment.