Auto commit at 2025-06-12 16:10:48
This commit is contained in:
parent
db9f0d75ca
commit
29bbad2b81
@ -101,7 +101,7 @@ void receiveHandler(const CANFrame &frame, void *userData)
|
||||
publisher->publish(msg);
|
||||
|
||||
// 根据开关决定是否打印 CAN 消息
|
||||
if (g_can_print_enable)
|
||||
if (g_can_print_enable && len > 0)
|
||||
{
|
||||
std::stringstream ss;
|
||||
ss << "CAN ID: ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user