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 Oct 1, 2023
1 parent af25d2e commit 70af888
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions nzxt-kraken3.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,12 +722,14 @@ 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);

if (priv->kind == Z53)
complete(&priv->status_report_processed);
return 0;
}

Expand Down

0 comments on commit 70af888

Please sign in to comment.