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

View file

@ -128,6 +128,10 @@ void setup() {
u8g2log.print(sgp.serialnumber[2], HEX); u8g2log.print(sgp.serialnumber[2], HEX);
u8g2log.print("\n"); 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' // 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! //sgp.setIAQBaseline(0x8E68, 0x8F41); // Will vary for each sensor!