Skip to content

Commit 92915ff

Browse files
committed
generic current sense typo
1 parent 0994853 commit 92915ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/current_sense/GenericCurrentSense.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ void GenericCurrentSense::calibrateOffsets(){
4141
// read all three phase currents (if possible 2 or 3)
4242
PhaseCurrent_s GenericCurrentSense::getPhaseCurrents(){
4343
PhaseCurrent_s current = readCallback();
44-
current.a = (current.a - offset_ia);// amps
45-
current.b = (current.a - offset_ib);// amps
46-
current.c = (current.a - offset_ic); // amps
44+
current.a = (current.a - offset_ia); // amps
45+
current.b = (current.b - offset_ib); // amps
46+
current.c = (current.c - offset_ic); // amps
4747
return current;
4848
}
4949

0 commit comments

Comments
 (0)