feat: Add SF to mute audio amplifier on supported radios (#3753)
* SF Audio amplifier mute port to 2.10 * added missing definition STR_SF_DISABLE_AUDIO_AMP * exclude radios not able to switch audio amp off * radio/src/storage/yaml/yaml_datastructs_128x64.cpp needs to distinguish between radios with or without switchable audio amps. Expample Zorro vs X9lites * updated companion and radio language PL * - added Companion and radio language SE - removed type unfinished for translated languages * added radio and companion language JP * - reverted change to 128x64 yaml_datastructs.h - moved exclusion of SF DISABLE_AUDIO_AMP based on hw capabilities to UI level * confused FUNC_ with FUNCTION_ * confused FUNCTION_* with FUNC_*
This commit is contained in:
@@ -594,7 +594,11 @@ bool isAssignableFunctionAvailable(int function, CustomFunctionData * functions)
|
||||
case FUNC_PLAY_SCRIPT:
|
||||
return false;
|
||||
#endif
|
||||
|
||||
case FUNC_DISABLE_AUDIO_AMP:
|
||||
#if defined(AUDIO_MUTE_GPIO)
|
||||
return true;
|
||||
#endif
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user