diff --git a/src/internal/streams.cc b/src/internal/streams.cc index 29b4f49..c95dcab 100644 --- a/src/internal/streams.cc +++ b/src/internal/streams.cc @@ -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(img_packet.checksum) << ", but 0x" - << std::setw(2) << std::setfill('0') - << static_cast(img_packet.checksum) << " now"; + << static_cast(checksum) << ", but 0x" << std::setw(2) + << std::setfill('0') << static_cast(img_packet.checksum) + << " now"; return false; }