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 <[email protected]>
  • Loading branch information
kakra committed May 25, 2022
1 parent 2792e62 commit 580de38
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 @@ -1083,6 +1083,20 @@ static int xpadneo_probe(struct hid_device *hdev, const struct hid_device_id *id
xdata->hdev = hdev;
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 580de38

Please sign in to comment.