iese5 tout capteur
Revision 1:ba856ab1ea97, committed 2019-02-19
- Comitter:
- etiene32
- Date:
- Tue Feb 19 10:21:12 2019 +0000
- Parent:
- 0:41a622cdd86d
- Commit message:
- IESE5
Changed in this revision
| Adafruit_SGP30.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Adafruit_SGP30.cpp Mon Jul 23 09:51:43 2018 +0000
+++ b/Adafruit_SGP30.cpp Tue Feb 19 10:21:12 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;
}