diff --git a/src/imu.cpp b/src/imu.cpp index 120db31..8d4afed 100644 --- a/src/imu.cpp +++ b/src/imu.cpp @@ -169,10 +169,10 @@ bool IMU1750::query_angle_units(bool& is_da) if(status) { std::vector::iterator match; - status = find_response(RFCmd, match); + status = find_response(RFCmd, match) && parse_angle_units(match); if(status) { - is_da = parse_angle_units(match); + is_da = _is_da; } }