feat(h7): increase GVAR limit to 15 (#6597)

Co-authored-by: elecpower <elecpower@users.noreply.github.com>
This commit is contained in:
3djc
2025-10-01 19:07:08 +10:00
committed by GitHub
co-authored by elecpower
parent 4de56d8096
commit 0da292001d
16 changed files with 100 additions and 43 deletions
@@ -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;
}