File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -396,15 +396,15 @@ def _read_hum_user_register(self) -> bytearray:
396
396
397
397
return self ._buffer [0 ]
398
398
399
- def _set_hum_user_register (self , register_value : Byte ) -> None :
399
+ def _set_hum_user_register (self , register_value : bytearray ) -> None :
400
400
self ._buffer [0 ] = _MS8607_HUM_CMD_WRITE_USR
401
401
self ._buffer [1 ] = register_value
402
402
with self .humidity_i2c_device as i2c :
403
403
# shouldn't this end at two?
404
404
i2c .write (self ._buffer , end = 2 )
405
405
406
406
@staticmethod
407
- def _check_humidity_crc (value : int , crc : Byte ) -> bool :
407
+ def _check_humidity_crc (value : int , crc : bytearray ) -> bool :
408
408
polynom = 0x988000 # x^8 + x^5 + x^4 + 1
409
409
msb = 0x800000
410
410
mask = 0xFF8000
@@ -425,7 +425,7 @@ def _check_humidity_crc(value: int, crc: Byte) -> bool:
425
425
return False
426
426
427
427
@staticmethod
428
- def _check_press_calibration_crc (calibration_int16s : bytearray , crc : Byte ) -> bool :
428
+ def _check_press_calibration_crc (calibration_int16s : bytearray , crc : bytearray ) -> bool :
429
429
cnt = 0
430
430
n_rem = 0
431
431
n_rem = 0
You can’t perform that action at this time.
0 commit comments