hg
Dependents: Example_DS3231_test
Revision 1:fedfd309fb3c, committed 2019-03-06
- Comitter:
- etiene32
- Date:
- Wed Mar 06 14:01:31 2019 +0000
- Parent:
- 0:41a622cdd86d
- Commit message:
- sd
Changed in this revision
Adafruit_SGP30.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 41a622cdd86d -r fedfd309fb3c Adafruit_SGP30.cpp --- a/Adafruit_SGP30.cpp Mon Jul 23 09:51:43 2018 +0000 +++ b/Adafruit_SGP30.cpp Wed Mar 06 14:01:31 2019 +0000 @@ -54,19 +54,27 @@ command[0] = 0x36; command[1] = 0x82; command[2] = 0x0; - if (! readWordFromCommand(command, 2, 5, serialnumber, 3)) + if (! readWordFromCommand(command, 2, 5, serialnumber, 3)){ + printf("1111111"); return false; +} uint16_t featureset; command[0] = 0x20; command[1] = 0x2F; - if (! readWordFromCommand(command, 2, 10, &featureset, 1)) + if (! readWordFromCommand(command, 2, 10, &featureset, 1)) { + printf("2222222"); return false; + } //Serial.print("Featureset 0x"); Serial.println(featureset, HEX); - if (featureset != SGP30_FEATURESET) + if (featureset != SGP30_FEATURESET) { + printf("3333333"); return false; - if (! IAQinit()) + } + if (! IAQinit()) { + printf("4444444"); return false; + } return true; }