Check for error from SDK.

This commit is contained in:
Hinko Kocevar committed 2018-01-29 16:27:46 +01:00
1 parent 22531574ff
commit 97893329be
1 file changed
+1
+1
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