Skip to content

Commit f11cecf

Browse files
authored
Merge pull request #17 from jposada202020/correcting_typo
correcting_typo_Conversion_Rate
2 parents b539443 + 9ecff63 commit f11cecf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

adafruit_emc2101/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class CV:
6969

7070
@classmethod
7171
def add_values(cls, value_tuples):
72-
"creates CV entries"
72+
"""creates CV entries"""
7373
cls.string = {}
7474
cls.lsb = {}
7575

@@ -94,7 +94,7 @@ class ConversionRate(CV):
9494
("RATE_1_16", 0, str(1 / 16.0), None),
9595
("RATE_1_8", 1, str(1 / 8.0), None),
9696
("RATE_1_4", 2, str(1 / 4.0), None),
97-
("RATE_1_2", 3, str(126.0), None),
97+
("RATE_1_2", 3, str(1 / 2.0), None),
9898
("RATE_1", 4, str(1.0), None),
9999
("RATE_2", 5, str(2.0), None),
100100
("RATE_4", 6, str(4.0), None),

adafruit_emc2101/emc2101_lut.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ class EMC2101_LUT(EMC2101): # pylint: disable=too-many-instance-attributes
158158
_pwm_freq_div = UnaryStruct(_PWM_DIV, "<B")
159159

160160
lut_temperature_hysteresis = UnaryStruct(_LUT_HYSTERESIS, "<B")
161-
"""The amount of hysteresis in Degrees celcius of hysteresis applied to temperature readings
161+
"""The amount of hysteresis in Degrees Celsius of hysteresis applied to temperature readings
162162
used for the LUT. As the temperature drops, the controller will switch to a lower LUT entry when
163-
the measured value is belowthe lower entry's threshold, minus the hysteresis value"""
163+
the measured value is below the lower entry's threshold, minus the hysteresis value"""
164164

165165
def __init__(self, i2c_bus):
166166
super().__init__(i2c_bus)
@@ -176,7 +176,7 @@ def initialize(self):
176176

177177
def set_pwm_clock(self, use_preset=False, use_slow=False):
178178
"""
179-
Select the PWM clock source, chosing between two preset clocks or by configuring the
179+
Select the PWM clock source, choosing between two preset clocks or by configuring the
180180
clock using `pwm_frequency` and `pwm_frequency_divisor`.
181181
182182
:param bool use_preset:

0 commit comments

Comments
 (0)