Skip to content

Commit

Permalink
Fixing make issues pt.3 (forgot to save, oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
ameall committed Mar 17, 2024
1 parent 4c397c8 commit 9444505
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions Core/Src/compute.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,21 +102,6 @@ bool compute_charger_connected()
// return;
// }

uint8_t pwm_set_value(uint16_t value, TIM_HandleTypeDef *htim, uint32_t *channel){
TIM_OC_InitTypeDef *PWMConfig;

PWMConfig->OCMode = TIM_OCMODE_PWM1;
PWMConfig.Pulse = value;
PWMConfig->OCPolarity = TIM_OCPOLARITY_HIGH;
PWMConfig->OCFastMode = TIM_OCFAST_DISABLE;

if (HAL_TIM_PWM_ConfigChannel(&htim, &PWMConfig, channel) != HAL_OK){
return 1;
}

return 0;
}

//? 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

0 comments on commit 9444505

Please sign in to comment.