Skip to content

Commit 2d855e1

Browse files
committed
Fixed style
1 parent 20df88a commit 2d855e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/joystick/hidapi/SDL_hidapi_lg4ff.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ static bool HIDAPI_DriverLg4ff_IsSupportedDevice(
277277
return true;
278278
}
279279
// a supported native mode is found, send mode change command, then still state that we support the device
280-
if (device != NULL && SDL_HIDAPI_DriverLg4ff_GetEnvInt("SDL_HIDAPI_LG4FF_NO_MODE_SWITCH", 0, 1, 0) == 0) {
280+
if (device && SDL_HIDAPI_DriverLg4ff_GetEnvInt("SDL_HIDAPI_LG4FF_NO_MODE_SWITCH", 0, 1, 0) == 0) {
281281
HIDAPI_DriverLg4ff_SwitchMode(device, real_id);
282282
}
283283
return true;

0 commit comments

Comments
 (0)