diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 4ebf84c5d986..b6e2b1088b88 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -1250,6 +1250,9 @@ cam_periph_freeze_after_event(struct cam_periph *periph, struct timeval delta; struct timeval duration_tv; + if (!timevalisset(event_time)) + return; + microtime(&delta); timevalsub(&delta, event_time); duration_tv.tv_sec = duration_ms / 1000;