Browse Source

AP_Baro: use FALLTHROUGH define

When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
master
Lucas De Marchi 8 years ago
parent
commit
7c6f9a004e
  1. 1
      libraries/AP_Baro/AP_Baro_MS5611.cpp

1
libraries/AP_Baro/AP_Baro_MS5611.cpp

@ -98,6 +98,7 @@ bool AP_Baro_MS56XX::_init() @@ -98,6 +98,7 @@ bool AP_Baro_MS56XX::_init()
switch (_ms56xx_type) {
case BARO_MS5607:
name = "MS5607";
FALLTHROUGH;
case BARO_MS5611:
prom_read_ok = _read_prom_5611(prom);
break;

Loading…
Cancel
Save