Skip to content
Snippets Groups Projects
Commit c3b6fd43 authored by Randy Mackay's avatar Randy Mackay
Browse files

Plane: fix suppressing comment for case fall through

No functional change
eclipse stops complaining if no-break is used in place of fall-through
parent 5f609618
No related branches found
No related tags found
No related merge requests found
...@@ -611,7 +611,7 @@ void Plane::update_flight_mode(void) ...@@ -611,7 +611,7 @@ void Plane::update_flight_mode(void)
quadplane.guided_update(); quadplane.guided_update();
break; break;
} }
// fall through // no break
case RTL: case RTL:
case LOITER: case LOITER:
...@@ -834,7 +834,7 @@ void Plane::update_navigation() ...@@ -834,7 +834,7 @@ void Plane::update_navigation()
if (radius > 0) { if (radius > 0) {
loiter.direction = (g.rtl_radius < 0) ? -1 : 1; loiter.direction = (g.rtl_radius < 0) ? -1 : 1;
} }
// fall through to LOITER // no break, fall through to LOITER
case LOITER: case LOITER:
case AVOID_ADSB: case AVOID_ADSB:
......
...@@ -7,7 +7,7 @@ void Plane::set_nav_controller(void) ...@@ -7,7 +7,7 @@ void Plane::set_nav_controller(void)
default: default:
case AP_Navigation::CONTROLLER_DEFAULT: case AP_Navigation::CONTROLLER_DEFAULT:
// fall through to L1 as default controller // no break, fall through to L1 as default controller
case AP_Navigation::CONTROLLER_L1: case AP_Navigation::CONTROLLER_L1:
nav_controller = &L1_controller; nav_controller = &L1_controller;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment