@@ -453,14 +453,14 @@ void vEFuses(ULONG thread_input) {
453453 case EF_AUTO :
454454 if (controller_temp >= PUMP1_UPPERBOUND ) {
455455 /* If timer is still active, break early. */
456- if (is_timer_active (& pump1_switching_timer ) && ! is_timer_expired (& pump1_switching_timer )) { break ; }
456+ if (! is_timer_expired (& pump1_switching_timer ) && is_timer_active (& pump1_switching_timer )) { break ; }
457457
458458 /* Otherwise, make the state change but restart the timer. */
459459 efuse_enable (EFUSE_PUMP1 );
460460 start_timer (& pump1_switching_timer , PUMP1_SWITCHING_TIMEOUT );
461461 } else if (controller_temp <= PUMP1_LOWERBOUND ) {
462462 /* If timer is still active, break early. */
463- if (is_timer_active (& pump1_switching_timer ) && ! is_timer_expired (& pump1_switching_timer )) { break ; }
463+ if (! is_timer_expired (& pump1_switching_timer ) && is_timer_active (& pump1_switching_timer )) { break ; }
464464
465465 /* Otherwise, make the state change but restart the timer. */
466466 efuse_disable (EFUSE_PUMP1 );
@@ -481,14 +481,14 @@ void vEFuses(ULONG thread_input) {
481481 case EF_AUTO :
482482 if (motor_temp >= PUMP2_UPPERBOUND ) {
483483 /* If timer is still active, break early. */
484- if (is_timer_active (& pump2_switching_timer ) && ! is_timer_expired (& pump2_switching_timer )) { break ; }
484+ if (! is_timer_expired (& pump2_switching_timer ) && is_timer_active (& pump2_switching_timer )) { break ; }
485485
486486 /* Otherwise, make the state change but restart the timer. */
487487 efuse_enable (EFUSE_PUMP2 );
488488 start_timer (& pump2_switching_timer , PUMP2_SWITCHING_TIMEOUT );
489489 } else if (motor_temp <= PUMP2_LOWERBOUND ) {
490490 /* If timer is still active, break early. */
491- if (is_timer_active (& pump2_switching_timer ) && ! is_timer_expired (& pump2_switching_timer )) { break ; }
491+ if (! is_timer_expired (& pump2_switching_timer ) && is_timer_active (& pump2_switching_timer )) { break ; }
492492
493493 /* Otherwise, make the state change but restart the timer. */
494494 efuse_disable (EFUSE_PUMP2 );
0 commit comments