Skip to content

Commit

Permalink
rtt: Refactor some of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
HrMitrev committed Dec 29, 2023
1 parent 6c88ef5 commit 0022d0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion UsingRTT.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ grep 2000 HelloWorld.ino.map | grep RTT

- ``monitor rtt send string``

push *string* to the rtt down buffer. It is equivalent to pushing the string to ttyBmpTarg.
push *string* to the RTT down buffer. It is equivalent to pushing the string to ttyBmpTarg.

- ``monitor rtt ident``

Expand Down
2 changes: 1 addition & 1 deletion src/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const command_s cmd_list[] = {
#ifdef ENABLE_RTT
{"rtt", cmd_rtt,
"[enable|disable|status|channel [0..15 ...]|ident [STR]|send [STR]|cblock|ram [RAM_START RAM_END]|"
"poll [MAXMS MMINMS AXERR]]"},
"poll [MAXMS MINMS MAXERR]]"},
#endif
#ifdef PLATFORM_HAS_TRACESWO
#if defined TRACESWO_PROTOCOL && TRACESWO_PROTOCOL == 2
Expand Down
2 changes: 1 addition & 1 deletion src/platforms/launchpad-icdi/rtt_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void rtt_serial_receive_callback(usbd_device *dev, uint8_t ep)
return;
}

rtt_load_recv_buf(usb_buf, len);
rtt_load_recv_buf(usb_buf, len);

/* block flag: flow control closed if not enough free buffer space */
if (!(rtt_flag_block && recv_set_nak()))
Expand Down

0 comments on commit 0022d0b

Please sign in to comment.