Skip to content

Commit

Permalink
左辺値参照に変更
Browse files Browse the repository at this point in the history
Co-authored-by: Shota Aoki <[email protected]>
  • Loading branch information
Kuwamai and Shota Aoki authored Nov 2, 2023
1 parent 7deedc2 commit c69fb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciurus17_control/src/sciurus17_hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ return_type Sciurus17Hardware::read(
return return_type::ERROR;
}

for (auto group_name : GROUP_NAMES) {
for (const auto & group_name : GROUP_NAMES) {
if (!hardware_->sync_read(group_name)) {
RCLCPP_ERROR(LOGGER, "Failed to sync read from servo motors.");
// sync_readに失敗しても通信は継続させる。
Expand Down

0 comments on commit c69fb19

Please sign in to comment.