We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3519cda commit 6cc415aCopy full SHA for 6cc415a
src/main/sensors/initialisation.c
@@ -506,14 +506,6 @@ static bool detectBaro(baroSensor_e baroHardwareToUse)
506
case BARO_DEFAULT:
507
; // fallthough
508
509
- case BARO_MS5611:
510
-#ifdef USE_BARO_MS5611
511
- if (ms5611Detect(&baro)) {
512
- baroHardware = BARO_MS5611;
513
- break;
514
- }
515
-#endif
516
- ; // fallthough
517
case BARO_BMP085:
518
#ifdef USE_BARO_BMP085
519
if (bmp085Detect(bmp085Config, &baro)) {
@@ -522,6 +514,14 @@ static bool detectBaro(baroSensor_e baroHardwareToUse)
522
}
523
#endif
524
+ case BARO_MS5611:
+#ifdef USE_BARO_MS5611
+ if (ms5611Detect(&baro)) {
520
+ baroHardware = BARO_MS5611;
521
+ break;
+ }
+#endif
+ ; // fallthough
525
case BARO_BMP280:
526
#ifdef USE_BARO_BMP280
527
if (bmp280Detect(&baro)) {
0 commit comments