Skip to content

Commit

Permalink
Bug fix, check for not true instead of complement
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Mar 24, 2021
1 parent 8fcebe5 commit 21dedf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Basic_kernels/src/krnl_counters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void krnl_counters(
pkts_i++;
}
// Only reset counters when rising edge
else if (reset && ~reset_1d) {
else if (reset && !reset_1d) {
pkts_i = 0;
beats_i = 0;
bytes_i = 0;
Expand Down

0 comments on commit 21dedf6

Please sign in to comment.