Skip to content

Commit

Permalink
Merge pull request #2573 from douniwan5788/tracelist
Browse files Browse the repository at this point in the history
fix: `trace list` when there are exactly 8 bits of data.
  • Loading branch information
iceman1001 authored Oct 15, 2024
2 parents bb3d36b + ac1f490 commit 1bf6104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/cmdtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ static uint16_t printTraceLine(uint16_t tracepos, uint16_t traceLen, uint8_t *tr
uint8_t nbits = parityBytes[0];

// only apply this to lesser than one byte
if (data_len == 1) {
if (data_len == 1 && nbits != 0) {

snprintf(line[0], 120, "%2u: %02X ", nbits, frame[0] >> (8 - nbits));

Expand Down

0 comments on commit 1bf6104

Please sign in to comment.