From 4ac353c8c18d3e3fd5c332a9769163f0fa81fb2e Mon Sep 17 00:00:00 2001 From: John Zhao Date: Mon, 4 Mar 2019 10:39:46 +0800 Subject: [PATCH] fix(streams_adapter_s2): comment calcuate image checksum --- src/mynteye/device/standard2/streams_adapter_s2.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mynteye/device/standard2/streams_adapter_s2.cc b/src/mynteye/device/standard2/streams_adapter_s2.cc index 1a2560b..ea497c4 100644 --- a/src/mynteye/device/standard2/streams_adapter_s2.cc +++ b/src/mynteye/device/standard2/streams_adapter_s2.cc @@ -120,12 +120,12 @@ bool unpack_stereo_img_data( << static_cast(img_packet.header) << " now"; return false; } - +/* std::uint8_t checksum = 0; for (std::size_t i = 2, n = packet_n - 2; i <= n; i++) { // content: [2,9] checksum = (checksum ^ packet[i]); } -/* + if (img_packet.checksum != checksum) { VLOG(2) << "Image packet checksum should be 0x" << std::hex << std::uppercase << std::setw(2) << std::setfill('0')