Merge pull request #17 from hinxx/check_error

Check for error from SDK.
This commit is contained in:
Mark Rivers
2018-01-31 11:56:47 -06:00
committed by GitHub

View File

@@ -304,6 +304,7 @@ asynStatus shamrock::getStatus()
error = ShamrockGetCalibration(shamrockId_, calibration_, numPixels_);
status = checkError(error, functionName, "ShamrockGetCalibration");
if (status) return asynError;
setDoubleParam(0, SRMinWavelength_, calibration_[0]);
setDoubleParam(0, SRMaxWavelength_, calibration_[numPixels_-1]);
// We need to find a C/C++ library to do 3'rd order polynomial fit