Commit fbf96aa
committed
fix(simulator): prevent pre-trip from exceeding 70h cycle limit
If cycle_hours_used = 69.9h only 6 min remain.
Previous check (> 0) allowed pre-trip to fire, pushing
cycle to 70.15h — over the FMCSA 70h limit.
New check (>= PRE_TRIP_MINUTES) requires at least 15 min
capacity before pre-trip proceeds.
All 26 tests passing.1 parent 43f9c83 commit fbf96aa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
424 | | - | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
0 commit comments