1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-14 03:49:58 +03:00

[VTX] Fix compilation with VTX control enabled without SAUDIO/TRAMP

This commit is contained in:
Alberto García Hierro 2020-10-04 11:38:48 +01:00
parent 44ba834948
commit 2a727dff68
4 changed files with 12 additions and 1 deletions

View file

@ -207,6 +207,7 @@ static int logicConditionCompute(
break;
case LOGIC_CONDITION_SET_VTX_POWER_LEVEL:
#if defined(USE_VTX_SMARTAUDIO) || defined(USE_VTX_TRAMP)
if (
logicConditionValuesByType[LOGIC_CONDITION_SET_VTX_POWER_LEVEL] != operandA &&
vtxCommonGetDeviceCapability(vtxCommonDevice(), &vtxDeviceCapability)
@ -218,6 +219,9 @@ static int logicConditionCompute(
return false;
}
break;
#else
return false;
#endif
case LOGIC_CONDITION_SET_VTX_BAND:
if (
@ -629,4 +633,4 @@ int16_t getRcCommandOverride(int16_t command[], uint8_t axis) {
}
return outputValue;
}
}