Skip to content

Commit 7815be8

Browse files
committed
WIP on pr-realcan: 277048e RealCAN implementation
2 parents 277048e + dae324d commit 7815be8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: cangen.c

+7
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,14 @@ int main(int argc, char **argv)
837837
if (ret)
838838
return 1;
839839

840+
int k[] = {1,2};
841+
int j = 0;
840842
while (running) {
843+
ts_gap = double_to_timespec((k[j%2])/1000.0);
844+
// printf("%lu, %lu\n", ts_gap.tv_sec, ts_gap.tv_nsec);
845+
setsockopt_txtime(s);
846+
setup_time();
847+
j++;
841848
/* clear values but preserve cu.fd.len */
842849
cu.fd.flags = 0;
843850
cu.fd.__res0 = 0;

0 commit comments

Comments
 (0)