Skip to content

Commit 47e4d79

Browse files
committed
fix logic bug
1 parent c1eee3c commit 47e4d79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/carlmontrobotics/lib199/MotorErrors.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public static void doReportSparkMaxTemp() {
124124
if(numTrips < kOverheatTripCount) {
125125
overheatedSparks.put(port, ++numTrips);
126126
}
127-
} else {
127+
} else if(numTrips < kOverheatTripCount) {
128128
overheatedSparks.put(port, 0);
129129
}
130130

0 commit comments

Comments
 (0)