mirror of
https://github.com/andreili/klipper.git
synced 2025-08-23 19:34:06 +02: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
@ -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…
x
Reference in New Issue
Block a user