From bd389c84ddf9499805b4b5b95617724d6e3eefbb Mon Sep 17 00:00:00 2001 From: kernelpanic-bf <56038836+kernelpanic-bf@users.noreply.github.com> Date: Sun, 18 Oct 2020 18:32:25 +0200 Subject: [PATCH] Small fix for upload calibration profile --- nyansat/station/imu/imu_bno055.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nyansat/station/imu/imu_bno055.py b/nyansat/station/imu/imu_bno055.py index d30f00c..aca88e0 100644 --- a/nyansat/station/imu/imu_bno055.py +++ b/nyansat/station/imu/imu_bno055.py @@ -172,6 +172,6 @@ def upload_calibration_profile(self, filename: str) -> None: def _set_calibration_profile(self, registers) -> None: old_mode = self.bno.mode(CONFIG_MODE) - for register_name, register_address in self.CALIBRATION_REGISTERS: + for register_name, register_address in self.CALIBRATION_REGISTERS.items(): self.bno._write(register_address, registers[register_name]) self.bno.mode(old_mode)