From d0cbd577cd2a5569b1275608dd6237a060570395 Mon Sep 17 00:00:00 2001 From: rmackay9 <rmackay9@yahoo.com> Date: Thu, 5 Apr 2012 00:28:04 +0900 Subject: [PATCH] AP_Motors - fixed last "shadowing" compiler warning caused by badly named parameter in auto_armed method. --- libraries/AP_Motors/AP_Motors.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Motors/AP_Motors.h b/libraries/AP_Motors/AP_Motors.h index 0e8d72373..cf936f469 100644 --- a/libraries/AP_Motors/AP_Motors.h +++ b/libraries/AP_Motors/AP_Motors.h @@ -84,7 +84,7 @@ public: // check or set status of auto_armed - controls whether autopilot can take control of throttle // Note: this should probably be moved out of this class as it has little to do with the motors virtual bool auto_armed() { return _auto_armed; }; - virtual void auto_armed(bool armed) { _auto_armed = armed; }; + virtual void auto_armed(bool arm) { _auto_armed = arm; }; // set_min_throttle - sets the minimum throttle that will be sent to the engines when they're not off (i.e. to prevents issues with some motors spinning and some not at very low throttle) virtual void set_min_throttle(uint16_t min_throttle) { _min_throttle = min_throttle; }; -- GitLab