diff --git a/src/internal/streams.cc b/src/internal/streams.cc index 2982d09..7e2e8e3 100644 --- a/src/internal/streams.cc +++ b/src/internal/streams.cc @@ -60,9 +60,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; }