Skip to content

Commit

Permalink
Fixed bug in function static bool read_trace( ).
Browse files Browse the repository at this point in the history
(Closes #1400)
  • Loading branch information
Nightwalker-87 committed May 30, 2024
1 parent a70c994 commit 32ce4bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/st-trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static trace_state update_trace(st_trace_t *trace, uint8_t c) {
}

static bool read_trace(stlink_t *stlink, st_trace_t *trace) {
uint8_t* buffer = 0;
uint8_t buffer[STLINK_V3_TRACE_BUF_LEN];
int32_t length = stlink_trace_read(stlink, buffer, sizeof(buffer));

if (length < 0) {
Expand Down

1 comment on commit 32ce4bf

@MikuChan03
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nightwalker-87 You'we welcome.

Please sign in to comment.