jarzebski / Arduino-INA226

INA226 Bi-directional Current/Power Monitor Arduino Librar
MIT License
48 stars 46 forks source link

Issue with setShuntVoltageLimit function #12

Open izzarzn opened 1 year ago

izzarzn commented 1 year ago

I have proposed some changes to the function:

void INA226::setShuntVoltageLimit(float voltage){// MODIFIED by GCAR uint16_t value = voltage/2.5e-6; writeRegister16(INA226_REG_ALERTLIMIT, value); }

jarzebski commented 1 year ago

Hi, can you explain proposed change?