Skip to content

Commit 11cdd73

Browse files
committed
unused: configure air class before the others
1 parent 811a3ed commit 11cdd73

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Arduino_MKRIoTCarrier.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ int MKRIoTCarrier::begin() {
7777
Relay2.begin();
7878

7979
//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-
80+
uint8_t sensorsOK = (_revision == BOARD_REVISION_2 ? !AirQuality.begin() << 4 : 0) |
81+
!Light.begin() << 0 |
82+
!Pressure.begin() << 1 |
83+
!IMUmodule.begin() << 2 |
84+
!Env.begin() << 3;
8385

8486
//If some of the sensors are not connected
8587
if(sensorsOK > 0 ){

0 commit comments

Comments
 (0)