mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-12-31 20:00:27 -07:00
neopixel: Make sure nsecs_to_ticks() is always inlined
It is a compile-time calculation that needs to be inlined to work. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
56d3f4e64c
commit
0fbcc156c5
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
typedef unsigned int neopixel_time_t;
|
||||
|
||||
static neopixel_time_t
|
||||
static __always_inline neopixel_time_t
|
||||
nsecs_to_ticks(uint32_t ns)
|
||||
{
|
||||
return timer_from_us(ns * 1000) / 1000000;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue