From 875661d70cb4e615ceffe0e62bd3a658ebf375a6 Mon Sep 17 00:00:00 2001 From: Pandacoolcool <1308455330@qq.com> Date: Mon, 18 Mar 2019 14:09:58 +0800 Subject: [PATCH] ist8310.cpp: remove unused variable --- src/drivers/magnetometer/ist8310/ist8310.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/drivers/magnetometer/ist8310/ist8310.cpp b/src/drivers/magnetometer/ist8310/ist8310.cpp index 3b6b1dd995..b9f406936b 100644 --- a/src/drivers/magnetometer/ist8310/ist8310.cpp +++ b/src/drivers/magnetometer/ist8310/ist8310.cpp @@ -228,8 +228,7 @@ private: /* status reporting */ bool _sensor_ok{false}; /**< sensor was found and reports ok */ bool _calibrated{false}; /**< the calibration is valid */ - bool _ctl_reg_mismatch{false}; /**< control register value mismatch after checking */ - + enum Rotation _rotation; sensor_mag_s _last_report{}; /**< used for info() */ @@ -505,8 +504,6 @@ void IST8310::check_conf(void) if (OK != ret) { perf_count(_comms_errors); } - - _ctl_reg_mismatch = true; } ret = read_reg(ADDR_CTRL4, ctrl_reg_in); @@ -523,11 +520,7 @@ void IST8310::check_conf(void) if (OK != ret) { perf_count(_comms_errors); } - - _ctl_reg_mismatch = true; } - - _ctl_reg_mismatch = false; } ssize_t