Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtract demominator by one #20

Merged
merged 8 commits into from
Aug 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove docstring in setter
  • Loading branch information
kolcz committed Aug 15, 2024
commit 7159f2cffa23887f3718c5c7b21a03b2bf3ff8f5
2 changes: 0 additions & 2 deletions adafruit_scd4x.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries

Check failure on line 1 in adafruit_scd4x.py

View workflow job for this annotation

GitHub Actions / test

reformatted
# SPDX-FileCopyrightText: Copyright (c) 2021 ladyada for Adafruit Industries
#
# SPDX-License-Identifier: MIT
Expand Down Expand Up @@ -305,8 +305,6 @@

@temperature_offset.setter
def temperature_offset(self, offset: Union[int, float]) -> None:
"""Equation used for calculation:
word[0] = T_offset * ((2**16 -1) / 175)"""
if offset > 374:
raise AttributeError(
"Offset value must be less than or equal to 374 degrees Celsius"
Expand Down
Loading