Skip to content

Commit

Permalink
Run pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 4d7f5c9 commit 91946ff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions adafruit_mlx90395.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 91946ff

Please sign in to comment.