소스 검색

Added a comment explaining the initialization delay

Sam Lantinga 1 주 전
부모
커밋
637a9b34ab
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/joystick/hidapi/SDL_hidapi_switch2.c

+ 1 - 0
src/joystick/hidapi/SDL_hidapi_switch2.c

@@ -349,6 +349,7 @@ static bool HIDAPI_DriverSwitch2_InitUSB(SDL_HIDAPI_Device *device)
     }
     RecvBulkData(ctx, calibration_data, 0x40);
 
+    // Wait for initialization to complete
     SDL_Delay(1);
 
     flash_read_command[12] = 0x80;