Skip to content

Commit

Permalink
Reduce time-based buffering threshold for MAVLink packets (#148)
Browse files Browse the repository at this point in the history
* Reduce time-based buffering threshold for MAVLink packets

* Update change
  • Loading branch information
MUSTARDTIGERFPV authored Aug 26, 2024
1 parent 74552f5 commit 15e2385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MAVLink/MAVLink.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ constexpr size_t MAVLINK_BUF_SIZE = 16;
// Threshold at which we will flush the buffer
constexpr size_t MAVLINK_BUF_THRESHOLD = MAVLINK_BUF_SIZE / 2;
// Timeout for flushing the buffer in ms
constexpr size_t MAVLINK_BUF_TIMEOUT = 500;
constexpr size_t MAVLINK_BUF_TIMEOUT = 100;

typedef struct {
uint32_t packets_downlink; // packets from the aircraft
Expand Down

0 comments on commit 15e2385

Please sign in to comment.