feat(h7): increase GVAR limit to 15 (#6597)
Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "adjustmentreference.h"
|
||||
#include "modeldata.h"
|
||||
#include "eeprominterface.h"
|
||||
|
||||
AdjustmentReference::AdjustmentReference(int value)
|
||||
{
|
||||
@@ -80,5 +81,10 @@ QString AdjustmentReference::toString(const ModelData * model, const bool sign)
|
||||
|
||||
const bool AdjustmentReference::isAvailable() const
|
||||
{
|
||||
Firmware *firmware = getCurrentFirmware();
|
||||
|
||||
if (type == ADJUST_REF_GVAR && abs(value) > firmware->getCapability(Gvars))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user