Skip to content

Commit

Permalink
overflow bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
whoenig committed Jan 19, 2024
1 parent df30f15 commit a6af35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crazyflie/src/crazyflie_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ class CrazyflieROS
if (deltaRxBc < 0) {
deltaRxBc += std::numeric_limits<uint16_t>::max();
}
if (deltaRxUc) {
if (deltaRxUc < 0) {
deltaRxUc += std::numeric_limits<uint16_t>::max();
}
msg.num_rx_broadcast = deltaRxBc;
Expand Down

0 comments on commit a6af35f

Please sign in to comment.