From fbaf634779f91db7cd0ba0336c29fa78c24814d7 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 19 May 2020 16:33:55 +0200 Subject: [PATCH] legicrf & gcc 10: Remove inline warning --- armsrc/legicrf.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/armsrc/legicrf.c b/armsrc/legicrf.c index 474d0df84..14298a5f1 100644 --- a/armsrc/legicrf.c +++ b/armsrc/legicrf.c @@ -113,7 +113,13 @@ static inline int32_t sample_power(void) { // // Note: The demodulator would be drifting (18.9us * 5 != 100us), rx_frame // has a delay loop that aligns rx_bit calls to the TAG tx timeslots. + +// Note: inlining this function would fail with -Os +#ifdef __OPTIMIZE_SIZE__ +static bool rx_bit(void) { +#else static inline bool rx_bit(void) { +#endif int32_t power; for (size_t i = 0; i < 5; ++i) {