From: Lukáš Jiřiště Date: Tue, 10 Dec 2024 15:31:19 +0000 (+0100) Subject: Make m_servo in Valve non-const X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=f431d6b0d2f0a048d007124184c6a553a520c4db;p=Servomatic.git 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. --- 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;