This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

extra bytes when using LOG_xx macros.

Hello

When I output some data using a 'LOG_xxx' macro, I do get debug information over the RTT console like this:

(13:33:59.995) [00:00:06.403,930] <ESC>[1;33m<wrn> bt_hci_core: opcode 0x200a status 0x09<ESC>[0m<CR>
(13:36:44.101) [00:02:50.516,906] <ESC>[0m<inf> gepro_ble: Disconnected: 42:E1:DA:DA:81:BC (random) (reason 19)<ESC>[0m<CR>

But as you can see there are some extra bytes in front and after the message:

<ESC>[1;33m
<ESC>[0m

Any idea what is causing this and how I can fix this?  Everything else works as expected, just the extra bytes I did not expect.

Related