Skip to content

Commit

Permalink
Cleanup prints...
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferry Schoenmakers committed Aug 12, 2024
1 parent ec4b1df commit 513f4ad
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/socketcan_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#include <sys/socket.h>

#include <cmath>
#include <cstring>
#include <iostream>

#include "rclcpp/logging.hpp"

Expand Down Expand Up @@ -179,11 +177,9 @@ void SocketCanBridge::receive_loop(std::stop_token stoken)
if (msg.is_error) {
// Based on data byte 1 select diagnostics level
if (frame.data[1] & CAN_ERR_CRTL_RX_WARNING || frame.data[1] & CAN_ERR_CRTL_TX_WARNING) {
std::cout << "Warning level reached" << std::endl;
state_ = CAN_STATE::WARN;
} else if (
frame.data[1] & CAN_ERR_CRTL_RX_PASSIVE || frame.data[1] & CAN_ERR_CRTL_TX_PASSIVE) {
std::cout << "Error level reached" << std::endl;
state_ = CAN_STATE::ERROR;
}
}
Expand Down

0 comments on commit 513f4ad

Please sign in to comment.