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:
Kevin O'Connor 2025-04-17 12:07:00 -04:00
parent 56d3f4e64c
commit 0fbcc156c5

View File

@ -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;