diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-04-17 12:07:00 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-04-17 12:09:19 -0400 |
commit | 0fbcc156c5ec30b5f8a2bac3ee5e4ca9a635ab69 (patch) | |
tree | 60bf78249c500634d2db56b4fe1a575aab783f10 /src/neopixel.c | |
parent | 56d3f4e64cd258560f090ca7c72b41ba8021cc0a (diff) | |
download | kutter-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>
Diffstat (limited to 'src/neopixel.c')
-rw-r--r-- | src/neopixel.c | 2 |
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; |