Skip to content

Commit

Permalink
Fix prescaler "value computed and is not used"
Browse files Browse the repository at this point in the history
  • Loading branch information
ricochet1k committed Sep 17, 2024
1 parent 1ec78dd commit 4152ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uCNC/src/hal/mcus/lpc176x/mcu_lpc176x.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ void mcu_freq_to_clocks(float frequency, uint16_t *ticks, uint16_t *prescaller)
*prescaller = 0;
while (totalticks > 0x0000FFFFUL)
{
*prescaller++;
(*prescaller) += 1;
totalticks >>= 1;
}

Expand Down

0 comments on commit 4152ee7

Please sign in to comment.