fix(streams_adapter_s2): comment calcuate image checksum

This commit is contained in:
John Zhao 2019-03-04 10:39:46 +08:00
parent 8b8e9bd5fd
commit 4ac353c8c1

View File

@ -120,12 +120,12 @@ bool unpack_stereo_img_data(
<< static_cast<int>(img_packet.header) << " now"; << static_cast<int>(img_packet.header) << " now";
return false; return false;
} }
/*
std::uint8_t checksum = 0; std::uint8_t checksum = 0;
for (std::size_t i = 2, n = packet_n - 2; i <= n; i++) { // content: [2,9] for (std::size_t i = 2, n = packet_n - 2; i <= n; i++) { // content: [2,9]
checksum = (checksum ^ packet[i]); checksum = (checksum ^ packet[i]);
} }
/*
if (img_packet.checksum != checksum) { if (img_packet.checksum != checksum) {
VLOG(2) << "Image packet checksum should be 0x" << std::hex VLOG(2) << "Image packet checksum should be 0x" << std::hex
<< std::uppercase << std::setw(2) << std::setfill('0') << std::uppercase << std::setw(2) << std::setfill('0')