mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
ist8310.cpp: remove unused variable
This commit is contained in:
committed by
Lorenz Meier
parent
a6315d4e6e
commit
875661d70c
@@ -228,8 +228,7 @@ private:
|
|||||||
/* status reporting */
|
/* status reporting */
|
||||||
bool _sensor_ok{false}; /**< sensor was found and reports ok */
|
bool _sensor_ok{false}; /**< sensor was found and reports ok */
|
||||||
bool _calibrated{false}; /**< the calibration is valid */
|
bool _calibrated{false}; /**< the calibration is valid */
|
||||||
bool _ctl_reg_mismatch{false}; /**< control register value mismatch after checking */
|
|
||||||
|
|
||||||
enum Rotation _rotation;
|
enum Rotation _rotation;
|
||||||
|
|
||||||
sensor_mag_s _last_report{}; /**< used for info() */
|
sensor_mag_s _last_report{}; /**< used for info() */
|
||||||
@@ -505,8 +504,6 @@ void IST8310::check_conf(void)
|
|||||||
if (OK != ret) {
|
if (OK != ret) {
|
||||||
perf_count(_comms_errors);
|
perf_count(_comms_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ctl_reg_mismatch = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = read_reg(ADDR_CTRL4, ctrl_reg_in);
|
ret = read_reg(ADDR_CTRL4, ctrl_reg_in);
|
||||||
@@ -523,11 +520,7 @@ void IST8310::check_conf(void)
|
|||||||
if (OK != ret) {
|
if (OK != ret) {
|
||||||
perf_count(_comms_errors);
|
perf_count(_comms_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
_ctl_reg_mismatch = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_ctl_reg_mismatch = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ssize_t
|
ssize_t
|
||||||
|
|||||||
Reference in New Issue
Block a user