mirror of https://github.com/ArduPilot/ardupilot
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:
parent
e2e836f676
commit
7c6f9a004e
|
@ -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…
Reference in New Issue