From 52f498df1c3b1f7c7cbf890fc8b889729df3337e Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Thu, 7 Sep 2023 12:12:27 +0200 Subject: [PATCH] Add missing const --- cpp/controllers/abstract_controller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/controllers/abstract_controller.h b/cpp/controllers/abstract_controller.h index 1afac2ba1c..834a0e450b 100644 --- a/cpp/controllers/abstract_controller.h +++ b/cpp/controllers/abstract_controller.h @@ -78,7 +78,7 @@ class AbstractController : public PhaseHandler, public enable_shared_from_this GetCmd() { return ctrl.cmd; } + span GetCmd() const { return ctrl.cmd; } // TODO Try to make this method protected. It is currently public for usage by the unit tests. void SetCmdByte(int index, int value) { ctrl.cmd[index] = value; } int GetCmd(int index) const { return ctrl.cmd[index]; }