Skip to content

Commit

Permalink
Fixed code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars-Kool committed Jul 1, 2024
1 parent 7c075b8 commit 3768ad7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions MMCore/MMCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6359,24 +6359,6 @@ bool CMMCore::PressurePumpRequiresCalibration(const char* deviceLabel) throw (CM
return pPump->requiresCalibration();
}

/**
* Sets the pressure of the pump in kPa
*/
void CMMCore::setPumpPressure(const char* deviceLabel, double pressurekPa) throw (CMMError)
{
std::shared_ptr<PressurePumpInstance> pPump =
deviceManager_->GetDeviceOfType<PressurePumpInstance>(deviceLabel);
mm::DeviceModuleLockGuard guard(pPump);

int ret = pPump->setPressure(pressurekPa);

if (ret != DEVICE_OK)
{
logError(deviceLabel, getDeviceErrorText(ret, pPump).c_str());
throw CMMError(getDeviceErrorText(ret, pPump));
}
}

/**
* Gets the pressure of the pump in kPa
*/
Expand Down

0 comments on commit 3768ad7

Please sign in to comment.