change the log of the wrong img_packet checksum

This commit is contained in:
KalmanSLightech 2018-04-10 16:05:35 +08:00
parent 8c0605255b
commit 9a77ca4bf5

View File

@ -59,9 +59,9 @@ bool unpack_stereo_img_data(
if (checksum != img_packet.checksum) {
LOG(WARNING) << "Image packet checksum should be 0x" << std::hex
<< std::uppercase << std::setw(2) << std::setfill('0')
<< static_cast<int>(img_packet.checksum) << ", but 0x"
<< std::setw(2) << std::setfill('0')
<< static_cast<int>(img_packet.checksum) << " now";
<< static_cast<int>(checksum) << ", but 0x" << std::setw(2)
<< std::setfill('0') << static_cast<int>(img_packet.checksum)
<< " now";
return false;
}