Paciente8159 / uCNC

µCNC - Universal CNC firmware for microcontrollers
https://github.com/Paciente8159/uCNC/wiki
GNU General Public License v3.0
296 stars 64 forks source link

Fix prescaler "value computed and is not used" #757

Closed ricochet1k closed 2 months ago

ricochet1k commented 2 months ago

Fixes this warning:

uCNC/src/hal/mcus/lpc176x/mcu_lpc176x.c: In function 'mcu_freq_to_clocks':
uCNC/src/hal/mcus/lpc176x/mcu_lpc176x.c:755:17: warning: value computed is not used [-Wunused-value]
  755 |                 *prescaller++;
      |                 ^~~~~~~~~~~~~

since *(prescaller++) is definitely not right.