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; }