Skip to content

Commit

Permalink
correcting_typo_Conversion_Rate
Browse files Browse the repository at this point in the history
  • Loading branch information
jposada202020 committed May 10, 2021
1 parent b539443 commit 9ecff63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions adafruit_emc2101/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CV:

@classmethod
def add_values(cls, value_tuples):
"creates CV entries"
"""creates CV entries"""
cls.string = {}
cls.lsb = {}

Expand All @@ -94,7 +94,7 @@ class ConversionRate(CV):
("RATE_1_16", 0, str(1 / 16.0), None),
("RATE_1_8", 1, str(1 / 8.0), None),
("RATE_1_4", 2, str(1 / 4.0), None),
("RATE_1_2", 3, str(126.0), None),
("RATE_1_2", 3, str(1 / 2.0), None),
("RATE_1", 4, str(1.0), None),
("RATE_2", 5, str(2.0), None),
("RATE_4", 6, str(4.0), None),
Expand Down
6 changes: 3 additions & 3 deletions adafruit_emc2101/emc2101_lut.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class EMC2101_LUT(EMC2101): # pylint: disable=too-many-instance-attributes
_pwm_freq_div = UnaryStruct(_PWM_DIV, "<B")

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

def __init__(self, i2c_bus):
super().__init__(i2c_bus)
Expand All @@ -176,7 +176,7 @@ def initialize(self):

def set_pwm_clock(self, use_preset=False, use_slow=False):
"""
Select the PWM clock source, chosing between two preset clocks or by configuring the
Select the PWM clock source, choosing between two preset clocks or by configuring the
clock using `pwm_frequency` and `pwm_frequency_divisor`.
:param bool use_preset:
Expand Down

0 comments on commit 9ecff63

Please sign in to comment.