Skip to content

Commit

Permalink
[JAG] Minimize delay from turbo mask update
Browse files Browse the repository at this point in the history
  • Loading branch information
darthcloud committed Oct 27, 2023
1 parent 0eb0aed commit f23f16f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main/wired/jag_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,10 +410,6 @@ static void jag_ctrl_task(void) {
core0_stall_end();
lock = 0;
timeout = 0;
for (uint32_t i = 0; i < 4; ++i) {
++wired_adapter.data[i].frame_cnt;
jag_gen_turbo_mask(&wired_adapter.data[i]);
}
}
}
}
Expand All @@ -429,6 +425,8 @@ static void jag_ctrl_task(void) {
timeout = 0;

if (row_idx[idx] == 3) {
++wired_adapter.data[socket_idx[idx]].frame_cnt;
jag_gen_turbo_mask(&wired_adapter.data[socket_idx[idx]]);
bank[socket_idx[idx]]++;
if (bank[socket_idx[idx]] > 2) {
bank[socket_idx[idx]] = 0;
Expand Down

0 comments on commit f23f16f

Please sign in to comment.