From e8ae618382b519191df1499906b13e0c6d912130 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Sun, 21 Mar 2021 11:59:35 +0100 Subject: [PATCH] Add ifdef to fix compilation on Linux --- openrtx/src/rtx.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openrtx/src/rtx.c b/openrtx/src/rtx.c index 02b21617..824f2821 100644 --- a/openrtx/src/rtx.c +++ b/openrtx/src/rtx.c @@ -119,6 +119,7 @@ void _afCtrlTerminate() * Knob position is given by an analog signal in the range 0 - 1500mV, * which has to be mapped in a range between 1 and 31. */ +#ifdef PLATFORM_MDUV380 void _afSetVolume() { float level = (platform_getVolumeLevel() / 1560.0f) * 30.0f; @@ -140,6 +141,7 @@ void _afSetVolume() } } } +#endif void rtx_init(pthread_mutex_t *m) {