瀏覽代碼

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;