fix(device-s1): Fix overflow of timestamp convertion
This commit is contained in:
parent
3ed2d501c2
commit
f7b85c6b05
|
@ -94,7 +94,8 @@ bool unpack_stereo_img_data(
|
|||
}
|
||||
|
||||
img->frame_id = img_packet.frame_id;
|
||||
img->timestamp = static_cast<uint64_t>(img_packet.timestamp * 10);
|
||||
// make timestamp unit from 10us to 1us
|
||||
img->timestamp = static_cast<uint64_t>(img_packet.timestamp) * 10;
|
||||
img->exposure_time = img_packet.exposure_time;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user