Skip to content

Commit 9f3d301

Browse files
Update main.cpp
1 parent 589ac8d commit 9f3d301

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ void wakeDisplay() {
167167

168168
void measure_values(){
169169
if(use_channel_1){
170-
shunt_voltage_1 = INA3221.getShuntVoltage(INA3221_CH1); //Value will be returned in mV.
170+
shunt_voltage_1 = INA3221.getShuntVoltage(INA3221_CH1); //Value will be returned in uV.
171171
bus_voltage_1 = INA3221.getVoltage(INA3221_CH1);
172172
current_mA_1 = INA3221.getCurrent(INA3221_CH1) * 1000; // mA
173173
load_voltage_1 = bus_voltage_1 + (shunt_voltage_1 / 1000000);
@@ -943,4 +943,4 @@ void loop() {
943943
}
944944
// ----- Sleep the display (decrease brightness) ----- //
945945

946-
}
946+
}

0 commit comments

Comments
 (0)