aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-17 12:07:00 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-04-17 12:09:19 -0400
commit0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69 (patch)
tree60bf78249c500634d2db56b4fe1a575aab783f10
parent56d3f4e64cd258560f090ca7c72b41ba8021cc0a (diff)
downloadkutter-0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69.tar.gz
kutter-0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69.tar.xz
kutter-0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69.zip
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>
-rw-r--r--src/neopixel.c2
1 files changed, 1 insertions, 1 deletions
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;