Skip to content

Commit

Permalink
only:docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Dec 17, 2024
1 parent d8e2945 commit 71c1ae8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions firmware/controllers/algo/trip_odometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ void TripOdometer::reset() {
void TripOdometer::consumeFuel(float grams, efitick_t nowNt) {
m_consumedRemainder += grams;

// 1000grams of fuel between invocations of TripOdometer logic means something very wrong, we do not control cruise ship engines yet!
criticalAssertVoid(m_consumedRemainder < 1000, "m_consumedRemainder busy loop");
while (m_consumedRemainder > 1) {
m_consumedRemainder--;
Expand Down

0 comments on commit 71c1ae8

Please sign in to comment.