X-Git-Url: https://git.smho.de/gw/?p=owSlave2.git;a=blobdiff_plain;f=common%2FI2C%2FSGP30.c;h=00b24cd52b928fa1c7ace16c24f4acc60dab0538;hp=62841c4eaaa1f5d3df2afcf11a90de4052cd8abf;hb=refs%2Fheads%2Fmaster;hpb=6467d8138460abffd9ddabc7b0a9f00c764af19c diff --git a/common/I2C/SGP30.c b/common/I2C/SGP30.c index 62841c4..00b24cd 100644 --- a/common/I2C/SGP30.c +++ b/common/I2C/SGP30.c @@ -162,6 +162,8 @@ void save_baseline(uint16_t b1,uint16_t b2 ) { void read_baseline(uint16_t *b1,uint16_t *b2) { *b1=readEEPROM(0,0xFFFF); *b2=readEEPROM(2,0xFFFF); + *b1=0xFFFF; + *b2=0xFFFF; } void set_baseline(uint16_t b1,uint16_t b2) {