From 585754a665345c9629dd327d1d81dfc568cdf722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Cebri=C3=A1n=20Juan?= Date: Wed, 2 Sep 2020 01:10:46 +0200 Subject: [PATCH] Telecommand status: mark functions as const --- src/algorithms/channel/adapters/channel.h | 2 +- src/algorithms/channel/libs/channel_fsm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/channel/adapters/channel.h b/src/algorithms/channel/adapters/channel.h index 64cc81e36..bfbe9977d 100644 --- a/src/algorithms/channel/adapters/channel.h +++ b/src/algorithms/channel/adapters/channel.h @@ -86,7 +86,7 @@ public: inline std::shared_ptr tracking() const { return trk_; } inline std::shared_ptr telemetry() const { return nav_; } - inline uint32_t fsm_state() { return channel_fsm_->state(); } + inline uint32_t fsm_state() const { return channel_fsm_->state(); } private: std::shared_ptr channel_fsm_; diff --git a/src/algorithms/channel/libs/channel_fsm.h b/src/algorithms/channel/libs/channel_fsm.h index 15d5595ee..eb31013a7 100644 --- a/src/algorithms/channel/libs/channel_fsm.h +++ b/src/algorithms/channel/libs/channel_fsm.h @@ -58,7 +58,7 @@ public: virtual bool Event_failed_acquisition_repeat(); virtual bool Event_failed_acquisition_no_repeat(); - inline uint32_t state() { return state_; } + inline uint32_t state() const { return state_; } private: void start_tracking();