From 637a9b34abd7ba6612e888219bacefa1bfb1c01d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 3 Sep 2025 15:47:05 -0700 Subject: [PATCH] Added a comment explaining the initialization delay --- src/joystick/hidapi/SDL_hidapi_switch2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/joystick/hidapi/SDL_hidapi_switch2.c b/src/joystick/hidapi/SDL_hidapi_switch2.c index 7b1978e79b..d7c4e8d98a 100644 --- a/src/joystick/hidapi/SDL_hidapi_switch2.c +++ b/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;