This is more proper
This commit is contained in:
parent
07e138dac8
commit
0b957e97ed
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ int hexagram_capture_save(hexagram_capture *capture,
|
||||||
hexagram_can_if *can_if) {
|
hexagram_can_if *can_if) {
|
||||||
struct can_frame frame;
|
struct can_frame frame;
|
||||||
|
|
||||||
while (hexagram_can_if_read(can_if, &frame) >= 0) {
|
while (hexagram_can_if_read(can_if, &frame) > 0) {
|
||||||
struct timeval timestamp;
|
struct timeval timestamp;
|
||||||
|
|
||||||
if (ioctl(can_if->sock, SIOCGSTAMP, ×tamp) < 0) {
|
if (ioctl(can_if->sock, SIOCGSTAMP, ×tamp) < 0) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue