diff --git a/src/ShimLib/ShimLib.c b/src/ShimLib/ShimLib.c index 7ed4a24..e532fbf 100644 --- a/src/ShimLib/ShimLib.c +++ b/src/ShimLib/ShimLib.c @@ -39,10 +39,11 @@ void ThreadFunc(void* args){ stop_flag = 0; break; } - if (i == 20){ - WaitForSingleObject(e1, INFINITE); - } + progress = (float)i * 0.1f; + if (i == 10){ + WaitForSingleObject(e1, INFINITE); + } 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;