Explorar o código

VPU: wave420l: Fix w4_enc_test run fail after press any key to stop once

Signed-off-by: Som Qin <som.qin@starfivetech.com>
Som Qin hai 1 ano
pai
achega
6bed1b258b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      wave420l/code/sample/main_w4_enc_test.c

+ 1 - 1
wave420l/code/sample/main_w4_enc_test.c

@@ -554,7 +554,7 @@ int TestEncoder(TestEncConfig *param)
         }
 
         timeoutCount = 0;
-        while (osal_kbhit() == 0) {
+        while (TRUE) {
             int_reason = VPU_WaitInterrupt(coreIdx, VPU_WAIT_TIME_OUT);
 
             if (int_reason == -1) {