This is more proper

This commit is contained in:
XANTRONIX Development 2019-03-13 20:09:40 -05:00
parent 07e138dac8
commit 0b957e97ed

View file

@ -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, &timestamp) < 0) { if (ioctl(can_if->sock, SIOCGSTAMP, &timestamp) < 0) {