From 12dcb762e4fa1781b03cccd197a0ce19aaf1ff55 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Tue, 10 Apr 2018 20:32:31 +0800 Subject: [PATCH] Fix imu packet checksum log --- src/internal/channels.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/internal/channels.cc b/src/internal/channels.cc index 7b8c6a2..21a15da 100644 --- a/src/internal/channels.cc +++ b/src/internal/channels.cc @@ -375,9 +375,9 @@ bool Channels::XuImuRead(ImuResPacket *res) const { if (checksum != res->checksum) { LOG(WARNING) << "Imu response packet checksum should be 0x" << std::hex << std::uppercase << std::setw(2) << std::setfill('0') - << static_cast(res->checksum) << ", but 0x" - << std::setw(2) << std::setfill('0') - << static_cast(res->checksum) << " now"; + << static_cast(checksum) << ", but 0x" << std::setw(2) + << std::setfill('0') << static_cast(res->checksum) + << " now"; return false; }