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