Skip to content

Commit dea8ea3

Browse files
author
Bartosz M. Zabolotny
committed
Fix power valid voltages setter scaling
1 parent 5fb5990 commit dea8ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ina3221.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -475,9 +475,9 @@ def power_valid_limits(self) -> tuple:
475475
in volts as (vlimitlow, vlimithigh).
476476
"""
477477
low_limit_result = self._read_register(POWERVALID_LOWERLIMIT, 2)
478-
vlimitlow = int.from_bytes(low_limit_result, "big") * 8e-3
478+
vlimitlow = int.from_bytes(low_limit_result, "big") * 1e-3
479479
high_limit_result = self._read_register(POWERVALID_UPPERLIMIT, 2)
480-
vlimithigh = int.from_bytes(high_limit_result, "big") * 8e-3
480+
vlimithigh = int.from_bytes(high_limit_result, "big") * 1e-3
481481
return vlimitlow, vlimithigh
482482

483483
@power_valid_limits.setter

0 commit comments

Comments
 (0)