We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 811a3ed commit 11cdd73Copy full SHA for 11cdd73
src/Arduino_MKRIoTCarrier.cpp
@@ -77,9 +77,11 @@ int MKRIoTCarrier::begin() {
77
Relay2.begin();
78
79
//Sensors
80
- uint8_t sensorsOK = !Light.begin() << 0 | !Pressure.begin() << 1 | !IMUmodule.begin() << 2 | !Env.begin() << 3 |
81
- (_revision == BOARD_REVISION_2 ? !AirQuality.begin() << 4 : 0);
82
-
+ uint8_t sensorsOK = (_revision == BOARD_REVISION_2 ? !AirQuality.begin() << 4 : 0) |
+ !Light.begin() << 0 |
+ !Pressure.begin() << 1 |
83
+ !IMUmodule.begin() << 2 |
84
+ !Env.begin() << 3;
85
86
//If some of the sensors are not connected
87
if(sensorsOK > 0 ){
0 commit comments