From e3c99524133a01816f222a7bcfb9bfa98f1ba182 Mon Sep 17 00:00:00 2001 From: Greg Sawyer Date: Wed, 11 Sep 2024 11:00:41 -0500 Subject: [PATCH] Fixed a bug that prevented the stage from moving when setting the position of the stage through a device property. --- DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.cpp b/DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.cpp index 893109d66..85434d76e 100644 --- a/DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.cpp +++ b/DeviceAdapters/MCL_MicroDrive/MicroDriveZStage.cpp @@ -370,7 +370,7 @@ int MCL_MicroDrive_ZStage::OnPositionMm(MM::PropertyBase* pProp, MM::ActionType err = GetPositionMm(z); if(err != MCL_SUCCESS) return err; - err = BeginMovementThread(STANDARD_MOVE_TYPE, z); + err = BeginMovementThread(STANDARD_MOVE_TYPE, pos); if (err != DEVICE_OK) return err; }