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) {