Skip to content

Commit

Permalink
NMEA2000: fix formattting conversion of signed to unsigned and back.
Browse files Browse the repository at this point in the history
  • Loading branch information
garyemiller committed Jul 26, 2017
1 parent f38b229 commit 7512a36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions driver_nmea2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1371,9 +1371,9 @@ static void find_pgn(struct can_frame *frame, struct gps_device_t *session)

clock_gettime(CLOCK_REALTIME, &msgTime);
(void)fprintf(logFile,
"(%010d.%06d) can0 %08x#",
(unsigned int)msgTime.tv_sec,
(unsigned int)msgTime.tv_nsec/1000,
"(%010ld.%06ld) can0 %08x#",
(long)msgTime.tv_sec,
msgTime.tv_nsec / 1000,
frame->can_id & 0x1ffffff);
if ((frame->can_dlc & 0x0f) > 0) {
int l1;
Expand Down

0 comments on commit 7512a36

Please sign in to comment.