Fix imu packet checksum log

This commit is contained in:
John Zhao 2018-04-10 20:32:31 +08:00
parent 20844c3a3e
commit 12dcb762e4

View File

@ -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<int>(res->checksum) << ", but 0x"
<< std::setw(2) << std::setfill('0')
<< static_cast<int>(res->checksum) << " now";
<< static_cast<int>(checksum) << ", but 0x" << std::setw(2)
<< std::setfill('0') << static_cast<int>(res->checksum)
<< " now";
return false;
}