mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 07:57:18 +02:00
add comment
This commit is contained in:
@ -376,12 +376,24 @@ bool LocalConfig::isPostDataToAirGradient(void) {
|
|||||||
|
|
||||||
bool LocalConfig::isLocallyControlled(void) { return config.locallyControlled; }
|
bool LocalConfig::isLocallyControlled(void) { return config.locallyControlled; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief CO2 manual calib request, the request flag will clear after get. Must call this after parse success
|
||||||
|
*
|
||||||
|
* @return true Requested
|
||||||
|
* @return false Not requested
|
||||||
|
*/
|
||||||
bool LocalConfig::isCo2CalibrationRequested(void) {
|
bool LocalConfig::isCo2CalibrationRequested(void) {
|
||||||
bool requested = co2CalibrationRequested;
|
bool requested = co2CalibrationRequested;
|
||||||
co2CalibrationRequested = false; // clear requested
|
co2CalibrationRequested = false; // clear requested
|
||||||
return requested;
|
return requested;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LED bar test request, the request flag will clear after get. Must call this function after parse success
|
||||||
|
*
|
||||||
|
* @return true Requested
|
||||||
|
* @return false Not requested
|
||||||
|
*/
|
||||||
bool LocalConfig::isLedBarTestRequested(void) {
|
bool LocalConfig::isLedBarTestRequested(void) {
|
||||||
bool requested = ledBarTestRequested;
|
bool requested = ledBarTestRequested;
|
||||||
ledBarTestRequested = false;
|
ledBarTestRequested = false;
|
||||||
@ -397,4 +409,9 @@ void LocalConfig::reset(void) {
|
|||||||
printConfig();
|
printConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get model name, it's usage for offline mode
|
||||||
|
*
|
||||||
|
* @return String
|
||||||
|
*/
|
||||||
String LocalConfig::getModel(void) { return String(config.model); }
|
String LocalConfig::getModel(void) { return String(config.model); }
|
||||||
|
Reference in New Issue
Block a user