Sfoglia il codice sorgente

Added a comment explaining the initialization delay

Sam Lantinga 1 settimana fa
parent
commit
637a9b34ab
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;