From 0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 17 Apr 2025 12:07:00 -0400 Subject: [PATCH] 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 --- src/neopixel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neopixel.c b/src/neopixel.c index bbea09f8..e7890a06 100644 --- a/src/neopixel.c +++ b/src/neopixel.c @@ -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;