From 9a77ca4bf5f1ca2720a27da88371d47777036373 Mon Sep 17 00:00:00 2001 From: KalmanSLightech Date: Tue, 10 Apr 2018 16:05:35 +0800 Subject: [PATCH] change the log of the wrong img_packet checksum --- src/internal/streams.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }