Skip to content

Various improvements#7

Open
victor-Lopez25 wants to merge 2 commits into
SEGGERMicro:mainfrom
victor-Lopez25:main
Open

Various improvements#7
victor-Lopez25 wants to merge 2 commits into
SEGGERMicro:mainfrom
victor-Lopez25:main

Conversation

@victor-Lopez25

Copy link
Copy Markdown
  1. Only include string.h when SEGGER_RTT_MEMCPY is not defined
  2. Fix memcpy being used in a couple places instead of SEGGER_RTT_MEMCPY
  3. Remove stdlib.h include from SEGGER_RTT.h since it's not necessary (unused)
  4. Add a new macro: SEGGER_RTT_PRINTF_FORMAT to let the compiler know SEGGER_RTT_printf is a printf function (the compiler will check for errors in printf calls)

2. Fix memcpy being used in a couple places instead of SEGGER_RTT_MEMCPY
3. Remove stdlib include from SEGGER_RTT.h since it's not necessary (unused)
… SEGGER_RTT_printf is a printf function (it will check for errors in printf calls)
@flair0626

Copy link
Copy Markdown

@SEGGER-Johannes @SEGGER-Tobias Can SEGGER_RTT_printf.c be enhanced to support floating-point number printing? Here is the enhanced code.
SEGGER_RTT_printf.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants