Init IAQ algorithm explicitely

This commit is contained in:
Cedric Girard 2019-05-07 20:50:45 +02:00
parent fc68edfa43
commit eb6fecc04c
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
1 changed files with 4 additions and 0 deletions

View File

@ -128,6 +128,10 @@ void setup() {
u8g2log.print(sgp.serialnumber[2], HEX);
u8g2log.print("\n");
if (! sgp.IAQinit()){
u8g2log.print("Failed to init IAQ algorithm\n");
}
// If you have a baseline measurement from before you can assign it to start, to 'self-calibrate'
//sgp.setIAQBaseline(0x8E68, 0x8F41); // Will vary for each sensor!