Skip to content

Commit

Permalink
xpadneo, core: Warn about old firmware version with stability issues
Browse files Browse the repository at this point in the history
Signed-off-by: Kai Krakow <kai@kaishome.de>
  • Loading branch information
kakra committed May 25, 2022
1 parent a279cc4 commit daca3d0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hid-xpadneo/src/hid-xpadneo.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,20 @@ static int xpadneo_probe(struct hid_device *hdev, const struct hid_device_id *id
hdev->quirks |= HID_QUIRK_INPUT_PER_APP;
hid_set_drvdata(hdev, xdata);

if (hdev->version == 0x00000903)
hid_warn(hdev, "buggy firmware detected, please upgrade to the latest version\n");
else if (hdev->version < 0x00000500)
hid_warn(hdev,
"classic Bluetooth firmware version %x.%02x, please upgrade for better stability\n",
hdev->version >> 8, (u8)hdev->version);
else if (hdev->version < 0x00000512)
hid_warn(hdev,
"BLE firmware version %x.%02x, please upgrade for better stability\n",
hdev->version >> 8, (u8)hdev->version);
else
hid_info(hdev, "BLE firmware version %x.%02x\n",
hdev->version >> 8, (u8)hdev->version);

/*
* Pretend that we are in Windows pairing mode as we are actually
* exposing the Windows mapping. This prevents SDL and other layers
Expand Down

0 comments on commit daca3d0

Please sign in to comment.