feat(h7): increase GVAR limit to 15 (#6597)
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
@@ -324,6 +324,9 @@ bool RawSource::isAvailable(const ModelData * const model, const GeneralSettings
|
||||
if (type == SOURCE_TYPE_CYC && !firmware->getCapability(Heli))
|
||||
return false;
|
||||
|
||||
if (type == SOURCE_TYPE_GVAR && abs(index) > firmware->getCapability(Gvars))
|
||||
return false;
|
||||
|
||||
if (model) {
|
||||
if (type == SOURCE_TYPE_TIMER && model->timers[abs(index) - 1].isModeOff())
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user