Преглед изворни кода

set the state to paused when set some param to a sample,so that the sample can be measured again after it has been success measured.

gsp пре 3 година
родитељ
комит
e07ab1d2a4
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSSample.cs

+ 5 - 0
OTSIncAMeasureApp/0-OTSModel/OTSDataType/COTSSample.cs

@@ -195,7 +195,12 @@ namespace OTSDataType
                     bSetFalg = false;
                     break;
             }
+            if (bSetFalg)
+            {
+                this.GetMsrStatus().SetStatus(OTS_MSR_SAMPLE_STATUS.PAUSED);//change the state so that this sample can be processed again.
+
 
+            }
 
             return bSetFalg;
         }