Skip to content

Commit

Permalink
Fix overflow behavior
Browse files Browse the repository at this point in the history
>250Hz would cause an overflow at boot, and the overflow logic was backwards, not flushing the buffer or anything, just looping.
  • Loading branch information
MUSTARDTIGERFPV committed Jul 29, 2024
1 parent 2478f43 commit ed9456f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WIFI/devWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ static void HandleWebUpdate()
if (mavlink_to_gcs_buf_count >= MAVLINK_BUF_SIZE)
{
mavlink_stats.overflows_downlink++;
return;
mavlink_to_gcs_buf_count = 0;
}
if (mavlink_frame_char(MAVLINK_COMM_0, val, &mavlink_to_gcs_buf[mavlink_to_gcs_buf_count], &status) != MAVLINK_FRAMING_INCOMPLETE)
{
Expand Down

0 comments on commit ed9456f

Please sign in to comment.