Skip to content

Commit

Permalink
fixed enum
Browse files Browse the repository at this point in the history
  • Loading branch information
dyldonahue committed Mar 25, 2024
1 parent f64297e commit c57f236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Core/Inc/compute.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ typedef enum {
FAN4,
FAN5,
FAN6,
FANMAX
} fan_select_t;

/**
Expand Down
2 changes: 1 addition & 1 deletion Core/Src/compute.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ bool compute_charger_connected()
uint8_t compute_set_fan_speed(TIM_HandleTypeDef* pwmhandle, fan_select_t fan_select, uint8_t duty_cycle)
{
assert(pwmhandle);
assert(fan_select < 6);
assert(fan_select < FANMAX);
assert(duty_cycle <= 100);
uint32_t CCR_value = 0;

Expand Down

0 comments on commit c57f236

Please sign in to comment.