fix ina226: use shunt param value

This commit is contained in:
Beat Küng
2021-12-10 09:03:08 -05:00
committed by Daniel Agar
parent a4ca298ee9
commit a9e918c7b2
+1 -1
View File
@@ -133,7 +133,7 @@ INA226::init()
write(INA226_REG_CONFIGURATION, INA226_RST);
_cal = INA226_CONST / (_current_lsb * INA226_SHUNT);
_cal = INA226_CONST / (_current_lsb * _rshunt);
if (write(INA226_REG_CALIBRATION, _cal) < 0) {
return -3;