From f431d6b0d2f0a048d007124184c6a553a520c4db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Tue, 10 Dec 2024 16:31:19 +0100 Subject: [PATCH] Make m_servo in Valve non-const This is done to appease the compiler about calling non-const methods on servo. The servo in the valve still should not be changed after initialization. --- Valve.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Valve.h b/Valve.h index 0701423..e5be9c0 100644 --- a/Valve.h +++ b/Valve.h @@ -6,7 +6,7 @@ class Valve { private: - const Servo m_servo; + Servo m_servo; const int m_usec_opened; const int m_usec_barely_opened; const int m_usec_closed; -- 2.30.2