From b1dae7fb6d388d48467136981fe76613b9078585 Mon Sep 17 00:00:00 2001 From: Peter Harper <77111776+peterharperuk@users.noreply.github.com> Date: Tue, 6 Dec 2022 11:07:05 +0000 Subject: [PATCH] Fix debug build issue (#300) Fixes #299 --- i2c/ht16k33_i2c/ht16k33_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i2c/ht16k33_i2c/ht16k33_i2c.c b/i2c/ht16k33_i2c/ht16k33_i2c.c index e2ecaf3..3a15edc 100644 --- a/i2c/ht16k33_i2c/ht16k33_i2c.c +++ b/i2c/ht16k33_i2c/ht16k33_i2c.c @@ -94,7 +94,7 @@ void ht16k33_init() { } // Send a specific binary value to the specified digit -inline void ht16k33_display_set(int position, uint16_t bin) { +static inline void ht16k33_display_set(int position, uint16_t bin) { uint8_t buf[3]; buf[0] = position * 2; buf[1] = bin & 0xff; @@ -102,7 +102,7 @@ inline void ht16k33_display_set(int position, uint16_t bin) { i2c_write_blocking(i2c_default, I2C_addr, buf, count_of(buf), false); } -inline void ht16k33_display_char(int position, char ch) { +static inline void ht16k33_display_char(int position, char ch) { ht16k33_display_set(position, char_to_pattern(ch)); }