Skip to content

Commit

Permalink
Fix regression: PS auth
Browse files Browse the repository at this point in the history
Since we're adding the report ID to the outgoing buffer in
do_queue_out_report() now, we shouldn't be also adding it manually in
PS auth code.
  • Loading branch information
jfedor2 committed Jan 15, 2025
1 parent 8c76e58 commit 2ac551b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions firmware/src/ps_auth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ void ps4_main_loop_task() {
busy = true;
break;
case SENDING_NONCE:
set_buffer[0] = 0xF0;
set_buffer[1] = nonce_id;
set_buffer[2] = nonce_part;
set_buffer[3] = 0;
memcpy(set_buffer + 4, nonce + (nonce_part * 56), 56);
queue_set_feature_report(auth_dev, 0xF0, set_buffer, 64);
set_buffer[0] = nonce_id;
set_buffer[1] = nonce_part;
set_buffer[2] = 0;
memcpy(set_buffer + 3, nonce + (nonce_part * 56), 56);
queue_set_feature_report(auth_dev, 0xF0, set_buffer, 63);
busy = true;
nonce_part++;
break;
Expand Down

0 comments on commit 2ac551b

Please sign in to comment.