We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fb5990 commit dea8ea3Copy full SHA for dea8ea3
adafruit_ina3221.py
@@ -475,9 +475,9 @@ def power_valid_limits(self) -> tuple:
475
in volts as (vlimitlow, vlimithigh).
476
"""
477
low_limit_result = self._read_register(POWERVALID_LOWERLIMIT, 2)
478
- vlimitlow = int.from_bytes(low_limit_result, "big") * 8e-3
+ vlimitlow = int.from_bytes(low_limit_result, "big") * 1e-3
479
high_limit_result = self._read_register(POWERVALID_UPPERLIMIT, 2)
480
- vlimithigh = int.from_bytes(high_limit_result, "big") * 8e-3
+ vlimithigh = int.from_bytes(high_limit_result, "big") * 1e-3
481
return vlimitlow, vlimithigh
482
483
@power_valid_limits.setter
0 commit comments