Skip to content

Commit 9e8c7b8

Browse files
committed
QA: Apply codespell suggestions.
1 parent f9fe41d commit 9e8c7b8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

bme680/constants.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239

240240
def bytes_to_word(msb, lsb, bits=16, signed=False):
241241
"""Convert a most and least significant byte into a word."""
242-
# TODO: Reimpliment with struct
242+
# TODO: Reimplement with struct
243243
word = (msb << 8) | lsb
244244
if signed:
245245
word = twos_comp(word, bits)
@@ -248,7 +248,7 @@ def bytes_to_word(msb, lsb, bits=16, signed=False):
248248

249249
def twos_comp(val, bits=16):
250250
"""Convert two bytes into a two's compliment signed word."""
251-
# TODO: Reimpliment with struct
251+
# TODO: Reimplement with struct
252252
if val & (1 << (bits - 1)) != 0:
253253
val = val - (1 << bits)
254254
return val
@@ -312,7 +312,7 @@ def __init__(self): # noqa D107
312312
self.range_sw_err = None
313313

314314
def set_from_array(self, calibration):
315-
"""Set paramaters from an array of bytes."""
315+
"""Set parameters from an array of bytes."""
316316
# Temperature related coefficients
317317
self.par_t1 = bytes_to_word(calibration[T1_MSB_REG], calibration[T1_LSB_REG])
318318
self.par_t2 = bytes_to_word(calibration[T2_MSB_REG], calibration[T2_LSB_REG], bits=16, signed=True)

0 commit comments

Comments
 (0)