Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #47 from mnakama/master
Browse files Browse the repository at this point in the history
Make LEDs optional
  • Loading branch information
nicman23 authored Jul 7, 2021
2 parents 8d9cd98 + 2b575d8 commit 5d83cab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hid-nintendo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ static int joycon_leds_create(struct joycon_ctlr *ctlr)
/* Set the home LED to 0 as default state */
ret = joycon_home_led_brightness_set(led, 0);
if (ret) {
hid_err(hdev, "Failed to set home LED dflt; ret=%d\n",
hid_warn(hdev, "Failed to set home LED dflt; ret=%d\n",
ret);
return ret;
}
Expand Down Expand Up @@ -2218,8 +2218,8 @@ static int nintendo_hid_probe(struct hid_device *hdev,
/* Initialize the leds */
ret = joycon_leds_create(ctlr);
if (ret) {
hid_err(hdev, "Failed to create leds; ret=%d\n", ret);
goto err_close;
// some 3rd-party controllers do not have LEDs
hid_warn(hdev, "Failed to create leds; ret=%d\n", ret);
}

/* Initialize the battery power supply */
Expand Down

0 comments on commit 5d83cab

Please sign in to comment.