Skip to content

Commit

Permalink
Fix shunt voltage signal (#20)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabiano Aguilera <fabiano.aguilera@g.globo>
  • Loading branch information
aguilerabr and Fabiano Aguilera authored Aug 14, 2024
1 parent a886182 commit 42985d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion INA219.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ uint8_t INA219::getAddress()
//
float INA219::getShuntVoltage()
{
uint16_t value = _readRegister(INA219_SHUNT_VOLTAGE);
int16_t value = _readRegister(INA219_SHUNT_VOLTAGE);
return value * 1e-5; // fixed 10 uV
}

Expand Down

0 comments on commit 42985d1

Please # to comment.