Skip to content

Commit

Permalink
AP_Network: mavlink packetise requires mavlink
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed Nov 28, 2023
1 parent 11a5b78 commit 0ffc6f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Networking/AP_Networking_port.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ bool AP_Networking::Port::send_receive(void)
// handle outgoing packets
uint32_t available = writebuffer->available();
available = MIN(300U, available);
#if HAL_GCS_ENABLED
if (packetise) {
available = mavlink_packetise(*writebuffer, available);
}
#endif
if (available > 0) {
uint8_t buf[available];
auto n = writebuffer->peekbytes(buf, available);
Expand Down

0 comments on commit 0ffc6f9

Please sign in to comment.