Skip to content

Commit

Permalink
"Reformatted per new black version"
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed Mar 29, 2022
1 parent 0ef34f0 commit a65db9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions adafruit_bme280/advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def iir_filter(self, value: int) -> None:

@property
def _config(self) -> int:
"""Value to be written to the device's config register """
"""Value to be written to the device's config register"""
config = 0
if self.mode == MODE_NORMAL:
config += self._t_standby << 5
Expand All @@ -239,7 +239,7 @@ def _config(self) -> int:

@property
def _ctrl_meas(self) -> int:
"""Value to be written to the device's ctrl_meas register """
"""Value to be written to the device's ctrl_meas register"""
ctrl_meas = self.overscan_temperature << 5
ctrl_meas += self.overscan_pressure << 2
ctrl_meas += self.mode
Expand Down
10 changes: 5 additions & 5 deletions adafruit_bme280/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@ def _write_ctrl_meas(self) -> None:
self._write_register_byte(_BME280_REGISTER_CTRL_MEAS, self._ctrl_meas)

def _get_status(self) -> int:
"""Get the value from the status register in the device """
"""Get the value from the status register in the device"""
return self._read_byte(_BME280_REGISTER_STATUS)

def _read_config(self) -> int:
"""Read the value from the config register in the device """
"""Read the value from the config register in the device"""
return self._read_byte(_BME280_REGISTER_CONFIG)

def _write_config(self) -> None:
"""Write the value to the config register in the device """
"""Write the value to the config register in the device"""
normal_flag = False
if self._mode == MODE_NORMAL:
# Writes to the config register may be ignored while in Normal mode
Expand All @@ -181,7 +181,7 @@ def mode(self, value: int) -> None:

@property
def _config(self) -> int:
"""Value to be written to the device's config register """
"""Value to be written to the device's config register"""
config = 0
if self.mode == 0x03: # MODE_NORMAL
config += self._t_standby << 5
Expand All @@ -191,7 +191,7 @@ def _config(self) -> int:

@property
def _ctrl_meas(self) -> int:
"""Value to be written to the device's ctrl_meas register """
"""Value to be written to the device's ctrl_meas register"""
ctrl_meas = self.overscan_temperature << 5
ctrl_meas += self.overscan_pressure << 2
ctrl_meas += self.mode
Expand Down

0 comments on commit a65db9d

Please sign in to comment.