diff --git a/examples/getcurrent/getcurrent.ino b/examples/getcurrent/getcurrent.ino index d981aed..05da783 100644 --- a/examples/getcurrent/getcurrent.ino +++ b/examples/getcurrent/getcurrent.ino @@ -43,7 +43,7 @@ void loop(void) busvoltage = ina219.getBusVoltage_V(); current_mA = ina219.getCurrent_mA(); power_mW = ina219.getPower_mW(); - loadvoltage = busvoltage + (shuntvoltage / 1000); + loadvoltage = busvoltage - (shuntvoltage / 1000); Serial.print("Bus Voltage: "); Serial.print(busvoltage); Serial.println(" V"); Serial.print("Shunt Voltage: "); Serial.print(shuntvoltage); Serial.println(" mV");