소스 검색

Fixed timeout opening the Nintendo Joy-Con Charging Grip

Sometimes opening the right Joy-Con takes a little longer for some reason
Sam Lantinga 3 년 전
부모
커밋
5d50fa52df
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_switch.c

+ 1 - 1
src/joystick/hidapi/SDL_hidapi_switch.c

@@ -624,7 +624,7 @@ WriteSubcommandSync(SDL_DriverSwitch_Context *ctx, ESwitchSubcommandIDs ucComman
 
 static SDL_bool WriteProprietary(SDL_DriverSwitch_Context *ctx, ESwitchProprietaryCommandIDs ucCommand, Uint8 *pBuf, Uint8 ucLen, SDL_bool waitForReply)
 {
-    int nRetries = 5;
+    int nRetries = 10;
 
     while (nRetries--) {
         SwitchProprietaryOutputPacket_t packet;