Skip to content

Commit e8196b2

Browse files
committed
fix should be canfd_frame
1 parent 0223125 commit e8196b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/socketcandcl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ inline void state_connected()
447447
}
448448

449449
if (FD_ISSET(raw_socket, &readfds)) {
450-
ret = recv(raw_socket, &frame, sizeof(struct can_frame), MSG_WAITALL);
450+
ret = recv(raw_socket, &frame, sizeof(struct canfd_frame), MSG_WAITALL);
451451
if (ret < sizeof(struct can_frame)) {
452452
PRINT_ERROR("Error reading frame from RAW socket\n");
453453
perror("Reading CAN socket\n");

0 commit comments

Comments
 (0)