Add ifdef to fix compilation on Linux

This commit is contained in:
Federico Amedeo Izzo 2021-03-21 11:59:35 +01:00
parent d964022c01
commit e8ae618382
1 changed files with 2 additions and 0 deletions

View File

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