Fix ShimLib simulation logic.
This commit is contained in:
@@ -39,10 +39,11 @@ void ThreadFunc(void* args){
|
|||||||
stop_flag = 0;
|
stop_flag = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i == 20){
|
|
||||||
WaitForSingleObject(e1, INFINITE);
|
|
||||||
}
|
|
||||||
progress = (float)i * 0.1f;
|
progress = (float)i * 0.1f;
|
||||||
|
if (i == 10){
|
||||||
|
WaitForSingleObject(e1, INFINITE);
|
||||||
|
}
|
||||||
Sleep(300);
|
Sleep(300);
|
||||||
}
|
}
|
||||||
status = READY;
|
status = READY;
|
||||||
@@ -73,6 +74,7 @@ int ScanControl(ScanAction actionType) {
|
|||||||
case STOP:
|
case STOP:
|
||||||
statusCountFlag = 0;
|
statusCountFlag = 0;
|
||||||
stop_flag = 1;
|
stop_flag = 1;
|
||||||
|
progress = 0.0f;
|
||||||
status = READY;
|
status = READY;
|
||||||
printf("Stop everything!\r\n");
|
printf("Stop everything!\r\n");
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user