Skip to content

Commit

Permalink
merge main, add type info on new functions
Browse files Browse the repository at this point in the history
  • Loading branch information
FoamyGuy committed Jul 30, 2023
1 parent 07617b7 commit ed8180c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_scd4x.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ def relative_humidity(self) -> float:
self._read_data()
return self._relative_humidity

def measure_single_shot(self):
def measure_single_shot(self) -> None:
"""On-demand measurement of CO2 concentration, relative humidity, and
temperature for SCD41 only"""
self._send_command(_SCD4X_MEASURESINGLESHOT, cmd_delay=5)

def measure_single_shot_rht_only(self):
def measure_single_shot_rht_only(self) -> None:
"""On-demand measurement of relative humidity and temperature for
SCD41 only"""
self._send_command(_SCD4X_MEASURESINGLESHOTRHTONLY, cmd_delay=0.05)
Expand Down

0 comments on commit ed8180c

Please sign in to comment.