Skip to content

Commit

Permalink
Fixed premature return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ameall committed Mar 18, 2024
1 parent 6255718 commit 6fd389f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Core/Src/compute.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ bool compute_charger_connected()
// return;
// }

void configure_pwm{

}

//? Change timers to not 1 and 8 since they are advanced timers?
uint8_t compute_set_fan_speed(uint8_t new_fan_speed, uint8_t fan_select)
{
Expand Down Expand Up @@ -138,10 +142,10 @@ uint8_t compute_set_fan_speed(uint8_t new_fan_speed, uint8_t fan_select)
return 2;
}

return 0;

// Call PWM start function for specific fan
HAL_TIM_PWM_Start(&htim, channels[fan_select]);

return 0;
}

void compute_set_fault(int fault_state)
Expand Down

0 comments on commit 6fd389f

Please sign in to comment.