mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 08:56:34 +02:00
Add logging for abcDays
This commit is contained in:
@ -801,7 +801,7 @@ void S8::sendCommand(uint8_t func, uint16_t reg, uint16_t value) {
|
||||
* @return true Success
|
||||
* @return false Failure
|
||||
*/
|
||||
bool S8::setAutoCalib(int hours) {
|
||||
bool S8::setAbcPeriod(int hours) {
|
||||
if (isBegin() == false) {
|
||||
return false;
|
||||
}
|
||||
@ -813,3 +813,10 @@ bool S8::setAutoCalib(int hours) {
|
||||
|
||||
return setCalibPeriodABC(hours);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get current 'ABC' calib period
|
||||
*
|
||||
* @return int Hour
|
||||
*/
|
||||
int S8::getAbcPeriod(void) { return getCalibPeriodABC(); }
|
||||
|
@ -78,7 +78,8 @@ public:
|
||||
int16_t getCo2(void);
|
||||
bool setBaselineCalibration(void);
|
||||
bool isBaseLineCalibrationDone(void);
|
||||
bool setAutoCalib(int hours);
|
||||
bool setAbcPeriod(int hours);
|
||||
int getAbcPeriod(void);
|
||||
|
||||
private:
|
||||
/** Variables */
|
||||
|
Reference in New Issue
Block a user