Skip to content

Commit 8fdba69

Browse files
committed
fix(INA260): millivolts returned by readBusVoltage
1 parent ed15084 commit 8fdba69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/i2c/drivers/drvIna260.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ bool drvIna260::begin() {
5959
*/
6060
/*******************************************************************************/
6161
bool drvIna260::getEventVoltage(sensors_event_t *voltageEvent) {
62-
voltageEvent->voltage = _ina260->readBusVoltage();
62+
voltageEvent->voltage = _ina260->readBusVoltage() / 1000.0f;
6363
return true;
6464
}
6565

0 commit comments

Comments
 (0)