From 9ed02403c7a73b8e42d2e809114e959dd30ce3f2 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Wed, 30 Apr 2025 22:47:31 -0700 Subject: try autostart mycan now, no print for testing for less trash log --- mycan.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mycan.c') diff --git a/mycan.c b/mycan.c index e46c6af..2255085 100644 --- a/mycan.c +++ b/mycan.c @@ -137,15 +137,15 @@ int main(int argc, char **argv) exit(1); } - printf("can_id = 0x%X\r\ncan_dlc = %d \r\n", frame.can_id, frame.can_dlc); - for(int i = 0; i < 8; i++) - printf("data[%d] = %d\r\n", i, frame.data[i]); + //printf("can_id = 0x%X\r\ncan_dlc = %d \r\n", frame.can_id, frame.can_dlc); + //for(int i = 0; i < 8; i++) + // printf("data[%d] = %d\r\n", i, frame.data[i]); can_message_u64 = u64_from_can_msg(frame.data); t=time(NULL); unpack_message(&obj,frame.can_id,can_message_u64,frame.can_dlc,t); - printf("my prints:\n"); - print_message(&obj, frame.can_id, stdout); - printf("my timestamp: %u\n", t); + //printf("my prints:\n"); + //print_message(&obj, frame.can_id, stdout); + //printf("my timestamp: %u\n", t); if(t>t_before) { t_before=t; -- cgit v1.2.3-70-g09d2