Skip to content

Commit

Permalink
spell check fix
Browse files Browse the repository at this point in the history
Signed-off-by: Keisuke Shima <19993104+KeisukeShima@users.noreply.github.com>
  • Loading branch information
KeisukeShima committed Apr 8, 2024
1 parent 269c39c commit 7200b42
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ class FaultInjectionDiagUpdater : public diagnostic_updater::DiagnosticTaskVecto
if (vsnprintf(buff, kBufferSize, format, va) >= kBufferSize) {
RCLCPP_DEBUG(logger_, "Really long string in diagnostic_updater::setHardwareIDf.");
}
hwid_ = std::string(buff);
hardware_id_ = std::string(buff);
va_end(va);
}

void setHardwareID(const std::string & hwid) { hwid_ = hwid; }
void setHardwareID(const std::string & hardware_id) { hardware_id_ = hardware_id; }

private:
void reset_timer()
Expand Down Expand Up @@ -188,7 +188,7 @@ class FaultInjectionDiagUpdater : public diagnostic_updater::DiagnosticTaskVecto
status.name = iter->getName();
status.level = 2;
status.message = "No message was set";
status.hardware_id = hwid_;
status.hardware_id = hardware_id_;

iter->run(status);

Expand Down Expand Up @@ -240,7 +240,7 @@ class FaultInjectionDiagUpdater : public diagnostic_updater::DiagnosticTaskVecto
rclcpp::Publisher<diagnostic_msgs::msg::DiagnosticArray>::SharedPtr publisher_;
rclcpp::Logger logger_;

std::string hwid_;
std::string hardware_id_;
std::string node_name_;
};
} // namespace fault_injection
Expand Down

0 comments on commit 7200b42

Please sign in to comment.