Skip to content

Commit

Permalink
[ulanding_radar] Fix comms error perf counter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
niklaut committed Feb 13, 2025
1 parent 96461cd commit 686302b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,15 @@ int AerotennaULanding::collect()

index--;
}

} else {
return -EAGAIN;
}

if (!checksum_passed) {
return -EAGAIN;
perf_count(_comms_errors);
perf_end(_sample_perf);
return -EBADMSG;
}

_px4_rangefinder.update(timestamp_sample, distance_m);
Expand Down

0 comments on commit 686302b

Please sign in to comment.