From 91946fff596f2a76857b1717692b358799abb77a Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Wed, 10 May 2023 22:39:02 -0400 Subject: [PATCH] Run pre-commit --- adafruit_mlx90395.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adafruit_mlx90395.py b/adafruit_mlx90395.py index 7ff18c9..a9ff61c 100644 --- a/adafruit_mlx90395.py +++ b/adafruit_mlx90395.py @@ -233,7 +233,6 @@ def gain(self, value: int) -> None: self._gain_val = value def _command(self, command_id: int) -> int: - buffer = bytearray([0x80, command_id]) with self.i2c_device as i2c: i2c.write_then_readinto(buffer, buffer, in_end=1) @@ -254,7 +253,6 @@ def magnetic(self) -> Tuple[float, float, float]: return res def _read_measurement(self) -> Tuple[float, float, float]: - # clear the buffer for i in range(len(self._buffer)): # pylint: disable=consider-using-enumerate self._buffer[i] = 0