Browse Source

rtt: Fix writing to down channels

Change-Id: I8d8d458ce687f5112a575c084a9c111c6896707b
rtt
Jim Paris 4 years ago
parent
commit
e8d8d9c53b
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/target/rtt.c

+ 1
- 1
src/target/rtt.c View File

@@ -192,7 +192,7 @@ int target_rtt_write_callback(struct rtt_control *ctrl,
int ret;
struct rtt_buffer rttbuf;

ret = read_rtt_buffer(target, ctrl, channel, false, &rttbuf);
ret = read_rtt_buffer(target, ctrl, channel, RTT_CHANNEL_TYPE_DOWN, &rttbuf);

if (ret != ERROR_OK) {
LOG_ERROR("Failed to read RTT buffer of down-channel %u", channel);


Loading…
Cancel
Save