resolve inline warnings

This commit is contained in:
Philippe Teuwen 2020-05-10 14:57:08 +02:00
commit 838d345918
4 changed files with 32 additions and 0 deletions

View file

@ -92,7 +92,12 @@ static inline uint8_t rx_byte_from_fpga() {
//
// Note: The SSC receiver is never synchronized the calculation may be performed
// on a i/q pair from two subsequent correlations, but does not matter.
// Note: inlining this function would fail with -Os
#ifdef __OPTIMIZE_SIZE__
static int32_t sample_power() {
#else
static inline int32_t sample_power() {
#endif
int32_t q = (int8_t)rx_byte_from_fpga();
q = ABS(q);
int32_t i = (int8_t)rx_byte_from_fpga();