Skip to content

Commit 21c68fd

Browse files
committed
fixed typos for (yet to be used) fault queue length
1 parent 4d763c5 commit 21c68fd

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ bundles
99
*.DS_Store
1010
.eggs
1111
dist
12-
**/*.egg-info
12+
**/*.egg-info
13+
.vscode

adafruit_pct2075.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ class FaultCount:
7070
"""Options for `faults_to_alert`"""
7171
FAULT_1 = 0
7272
FAULT_2 = 1
73-
FAULT_4 = 3
74-
FAULT_6 = 4
73+
FAULT_4 = 2
74+
FAULT_6 = 3
7575

7676
# pylint: enable=bad-whitespace, too-few-public-methods
7777

@@ -96,7 +96,7 @@ def __init__(self, i2c_bus, address=PCT2075_DEFAULT_ADDRESS):
9696
"""Set to True to turn off the temperature measurement circuitry in the sensor. While shut down
9797
the configurations properties can still be read or written but the temperature will not be
9898
measured"""
99-
_fault_queue_length = RWBits(2, PCT2075_REGISTER_CONFIG, 5, register_width=1)
99+
_fault_queue_length = RWBits(2, PCT2075_REGISTER_CONFIG, 3, register_width=1)
100100
_high_temperature_threshold = UnaryStruct(PCT2075_REGISTER_TOS, ">h")
101101
_temp_hysteresis = UnaryStruct(PCT2075_REGISTER_THYST, ">h")
102102
_idle_time = RWBits(5, PCT2075_REGISTER_TIDLE, 0, register_width=1)

0 commit comments

Comments
 (0)