Explorar o código

Added a comment explaining the initialization delay

Sam Lantinga hai 1 semana
pai
achega
637a9b34ab
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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;