forked from airgradienthq/arduino
Get pm config function
This commit is contained in:
@ -1344,3 +1344,13 @@ String Configuration::newFirmwareVersion(void) {
|
|||||||
otaNewFirmwareVersion = String("");
|
otaNewFirmwareVersion = String("");
|
||||||
return newFw;
|
return newFw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Configuration::isPMCorrectionChanged(void) {
|
||||||
|
bool changed = pmCorrection.changed;
|
||||||
|
pmCorrection.changed = false;
|
||||||
|
return changed;
|
||||||
|
}
|
||||||
|
|
||||||
|
PMCorrection Configuration::getPMCorrection(void) {
|
||||||
|
return pmCorrection;
|
||||||
|
}
|
||||||
|
@ -96,6 +96,8 @@ public:
|
|||||||
void setOfflineModeWithoutSave(bool offline);
|
void setOfflineModeWithoutSave(bool offline);
|
||||||
bool isLedBarModeChanged(void);
|
bool isLedBarModeChanged(void);
|
||||||
bool isMonitorDisplayCompensatedValues(void);
|
bool isMonitorDisplayCompensatedValues(void);
|
||||||
|
bool isPMCorrectionChanged(void);
|
||||||
|
PMCorrection getPMCorrection(void);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /** _AG_CONFIG_H_ */
|
#endif /** _AG_CONFIG_H_ */
|
||||||
|
Reference in New Issue
Block a user