Skip to content

Commit

Permalink
nzxt-kraken3: complete_all() Z53 statuses if firmware is damaged
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksa Savic <[email protected]>
  • Loading branch information
aleksamagicka committed Sep 29, 2023
1 parent 218b5d0 commit 05089eb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nzxt-kraken3.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,12 @@ static int kraken3_raw_event(struct hid_device *hdev, struct hid_report *report,
if (data[TEMP_SENSOR_START_OFFSET] == 0xff && data[TEMP_SENSOR_END_OFFSET] == 0xff) {
hid_err_once(hdev, "firmware or device is possibly damaged, not parsing reports\n");

/* Mark first X-series device report as received, even if faulty */
if (priv->kind == X53 && !completion_done(&priv->status_report_processed))
/*
* Mark first X-series device report as received,
* as well as all for Z-series, if faulty.
*/
if ((priv->kind == X53 && !completion_done(&priv->status_report_processed)) ||
priv->kind == Z53)
complete_all(&priv->status_report_processed);

return 0;
Expand Down

0 comments on commit 05089eb

Please sign in to comment.