Skip to content

Commit

Permalink
Merge pull request #1 from neutronstriker/patch-1
Browse files Browse the repository at this point in the history
setShuntVoltageLimit() has been modified
  • Loading branch information
jarzebski authored May 18, 2023
2 parents 69f865d + fd7a9d1 commit 1df77bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion INA226.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ void INA226::setBusVoltageLimit(float voltage)

void INA226::setShuntVoltageLimit(float voltage)
{
uint16_t value = voltage * 25000;
uint16_t value = voltage / 0.0000025;
writeRegister16(INA226_REG_ALERTLIMIT, value);
}

Expand Down

0 comments on commit 1df77bb

Please sign in to comment.