From 86d1488e523991bb2eb2a3530bcd661588cf4c38 Mon Sep 17 00:00:00 2001 From: Andreas Antener Date: Mon, 1 Aug 2016 15:08:05 +0200 Subject: [PATCH] added missing const keyword --- src/modules/vtol_att_control/vtol_att_control_main.cpp | 2 +- src/modules/vtol_att_control/vtol_att_control_main.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/vtol_att_control/vtol_att_control_main.cpp b/src/modules/vtol_att_control/vtol_att_control_main.cpp index 6b6cbc4538..1dbc1b39f3 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.cpp +++ b/src/modules/vtol_att_control/vtol_att_control_main.cpp @@ -510,7 +510,7 @@ VtolAttitudeControl::is_fixed_wing_requested() * Abort front transition */ void -VtolAttitudeControl::abort_front_transition(char *reason) +VtolAttitudeControl::abort_front_transition(const char *reason) { if (!_abort_front_transition) { mavlink_log_critical(&_mavlink_log_pub, "Abort: %s", reason); diff --git a/src/modules/vtol_att_control/vtol_att_control_main.h b/src/modules/vtol_att_control/vtol_att_control_main.h index 762d6bd2b2..ab9545fb9e 100644 --- a/src/modules/vtol_att_control/vtol_att_control_main.h +++ b/src/modules/vtol_att_control/vtol_att_control_main.h @@ -110,7 +110,7 @@ public: int start(); /* start the task and return OK on success */ bool is_fixed_wing_requested(); - void abort_front_transition(char *reason); + void abort_front_transition(const char *reason); struct vehicle_attitude_s *get_att() {return &_v_att;} struct vehicle_attitude_setpoint_s *get_att_sp() {return &_v_att_sp;}