Skip to content

Commit

Permalink
fix: extra while loop deleted from readOnce
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezgu authored and AndreasKuhner committed Oct 16, 2024
1 parent dd7dfb3 commit 2174afd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/robot_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,6 @@ void Robot::Impl::throwOnMotionError(const RobotState& robot_state, uint32_t mot
}

RobotState Robot::Impl::readOnce() {
// Delete old data from the UDP buffer.
research_interface::robot::RobotState robot_state;
while (network_->udpReceive<decltype(robot_state)>(&robot_state)) {
}
current_state_ = convertRobotState(receiveRobotState());
return current_state_;
}
Expand Down

0 comments on commit 2174afd

Please sign in to comment.