mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-15 00:46:31 +02:00
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) {
|
||||
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 setNoxLearningOffset(int offset);
|
||||
void setTvocLearningOffset(int offset);
|
||||
int getNoxLearningOffset(void);
|
||||
int getTvocLearningOffset(void);
|
||||
|
||||
private:
|
||||
bool onConditioning = true;
|
||||
|
Reference in New Issue
Block a user