From 59a5ba452fb41c005e24655335793b8c5d936cd0 Mon Sep 17 00:00:00 2001 From: smathis Date: Wed, 17 Sep 2025 12:37:55 +0200 Subject: [PATCH] Fixed ordering --- src/sinqAxis.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/sinqAxis.h b/src/sinqAxis.h index 4bb77e0..212334f 100644 --- a/src/sinqAxis.h +++ b/src/sinqAxis.h @@ -450,8 +450,10 @@ class HIDDEN sinqAxis : public asynMotorAxis { void setTargetPosition(double targetPosition); private: - std::unique_ptr pSinqA_; + // Ordering matters because pC_ is initialized before pSinqA_ in the + // constructor sinqController *pC_; + std::unique_ptr pSinqA_; }; // =============================================================================