Skip to content

Commit

Permalink
stm32f7/stm32_foc.c: Set .info_get to foc_lower_ops
Browse files Browse the repository at this point in the history
This fixes build error (Werror):

Error: chip/stm32_foc.c:1918:12: error: 'stm32_foc_info_get' defined but not used [-Werror=unused-function]
 1918 | static int stm32_foc_info_get(struct foc_dev_s *dev, struct foc_info_s *info)
      |            ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
  • Loading branch information
pussuw committed Mar 22, 2024
1 parent 8e43b84 commit c5b86b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/src/stm32f7/stm32_foc.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ static struct foc_lower_ops_s g_stm32_foc_ops =
.start = stm32_foc_start,
.pwm_duty_set = stm32_foc_pwm_duty_set,
.pwm_off = stm32_foc_pwm_off,
.info_get = stm32_foc_info_get,
.ioctl = stm32_foc_ioctl,
.bind = stm32_foc_bind,
.fault_clear = stm32_foc_fault_clear,
Expand Down

0 comments on commit c5b86b5

Please sign in to comment.