From 703dea598a77eabfb53589aaf58bc49dcee2e818 Mon Sep 17 00:00:00 2001 From: nenad Date: Wed, 24 Sep 2008 22:52:36 +0000 Subject: [PATCH] cleaned up after merge git-svn-id: https://valelab.ucsf.edu/svn/micromanager2/trunk@1569 d0ab736e-dc22-4aeb-8dc9-08def0aa14fd --- DeviceAdapters/Hamamatsu/Hamamatsu.cpp | 28 ---------------------- DeviceAdapters/NikonTE2000/NikonTE2000.cpp | 2 ++ MMCore/CoreCallback.cpp | 6 ++--- 3 files changed, 5 insertions(+), 31 deletions(-) diff --git a/DeviceAdapters/Hamamatsu/Hamamatsu.cpp b/DeviceAdapters/Hamamatsu/Hamamatsu.cpp index d7a2e0c234..11ee6029e7 100644 --- a/DeviceAdapters/Hamamatsu/Hamamatsu.cpp +++ b/DeviceAdapters/Hamamatsu/Hamamatsu.cpp @@ -524,34 +524,6 @@ int CHamamatsu::OnPhotonImagingMode(MM::PropertyBase* pProp, MM::ActionType eAct return DEVICE_OK; } -// Output Trigger Polarity -int CHamamatsu::OnOutputTriggerPolarity(MM::PropertyBase* pProp, MM::ActionType eAct) -{ - if (eAct == MM::AfterSet) - { - double mode; - pProp->Get(mode); - // Not sure if we need to shut down the image buffer - int ret = ShutdownImageBuffer(); - if (ret != DEVICE_OK) - return ret; - if (!dcam_setpropertyvalue(m_hDCAM, DCAM_IDPROP_OUTPUTTRIGGER_POLARITY, mode)) - return ReportError("Error in dcam_setpropertyvalue (outputtriggerpolarity): "); - - ret = ResizeImageBuffer(); - if (ret != DEVICE_OK) - return ret; - } - else if (eAct == MM::BeforeGet) - { - double polarity; - if (!dcam_getpropertyvalue(m_hDCAM, DCAM_IDPROP_OUTPUTTRIGGER_POLARITY, &polarity)) - return ReportError("Error in dcam_getpropertyvalue (outputtriggerpolarity): "); - pProp->Set(polarity); - } - return DEVICE_OK; -} - // ReadoutTime int CHamamatsu::OnReadoutTime(MM::PropertyBase* pProp, MM::ActionType eAct) { diff --git a/DeviceAdapters/NikonTE2000/NikonTE2000.cpp b/DeviceAdapters/NikonTE2000/NikonTE2000.cpp index 97eb74e98e..cc332dfaa2 100644 --- a/DeviceAdapters/NikonTE2000/NikonTE2000.cpp +++ b/DeviceAdapters/NikonTE2000/NikonTE2000.cpp @@ -1736,6 +1736,8 @@ int PFSOffset::SetPositionSteps(long steps) int ret = g_hub.SetPFocusPosition(*this, *GetCoreCallback(), steps); if (ret != 0) return ret; + + return DEVICE_OK; } int PFSOffset::GetPositionSteps(long& steps) diff --git a/MMCore/CoreCallback.cpp b/MMCore/CoreCallback.cpp index badc9772c6..fc813f806a 100644 --- a/MMCore/CoreCallback.cpp +++ b/MMCore/CoreCallback.cpp @@ -246,17 +246,17 @@ const char* CoreCallback::GetImage() } } -int CoreCallback::GetImageDimensions(int& width, int& height, int& depth) +int CoreCallback::GetImageDimensions(int& /*width*/, int& /*height*/, int& /*depth*/) { return DEVICE_OK; } -int CoreCallback::GetFocusPosition(double& pos) +int CoreCallback::GetFocusPosition(double& /*pos*/) { return DEVICE_OK; } -int CoreCallback::SetFocusPosition(double pos) +int CoreCallback::SetFocusPosition(double /*pos*/) { return DEVICE_OK; }