forked from airgradienthq/arduino
add get nox/tvoc learning offset
This commit is contained in:
@ -293,3 +293,7 @@ void Sgp41::setNoxLearningOffset(int offset) {
|
|||||||
void Sgp41::setTvocLearningOffset(int offset) {
|
void Sgp41::setTvocLearningOffset(int offset) {
|
||||||
tvocLearnOffset = offset;
|
tvocLearnOffset = offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int Sgp41::getNoxLearningOffset(void) { return noxLearnOffset; }
|
||||||
|
|
||||||
|
int Sgp41::getTvocLearningOffset(void) { return tvocLearnOffset; }
|
||||||
|
@ -28,6 +28,8 @@ public:
|
|||||||
void setCompensationTemperatureHumidity(float temp, float hum);
|
void setCompensationTemperatureHumidity(float temp, float hum);
|
||||||
void setNoxLearningOffset(int offset);
|
void setNoxLearningOffset(int offset);
|
||||||
void setTvocLearningOffset(int offset);
|
void setTvocLearningOffset(int offset);
|
||||||
|
int getNoxLearningOffset(void);
|
||||||
|
int getTvocLearningOffset(void);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool onConditioning = true;
|
bool onConditioning = true;
|
||||||
|
Reference in New Issue
Block a user