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.
This commit is contained in:
Lucas De Marchi 2017-08-22 10:28:10 -07:00
parent e2e836f676
commit 7c6f9a004e
1 changed files with 1 additions and 0 deletions

View File

@ -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;