platformio / platformio-docs

PlatformIO Documentation
https://docs.platformio.org
Apache License 2.0
234 stars 323 forks source link

Setting monitor_filters in ini file as described in the documentation does not work #348

Closed marcelloDC closed 2 months ago

marcelloDC commented 2 months ago

When I set monitor_filters to direct using the multiple lines format as described in the documentation I get the following warning when i start up the serial-monitor:

Warning! Skipping unknown filters direct; . Known filters are colorize, debug, default, direct, hexlify, log2file, nocontrol, printable, send_on_enter, time

and the filter is not set. It only works when I use the "single line" format as below:

monitor_filters = direct

In Core 6.1.14 Home 3.4.4

ivankravets commented 2 months ago

Warning! Skipping unknown filters direct;

Wrong declaration. The format is following:

monitor_filters = 
   f1
   f2
   fn
marcelloDC commented 2 months ago

Darn! You're right (of course). From the example in the docs I had misinterpreted the ; character to be part of the format and I had written:

monitor_filters =
    direct;

probably the only thing that you can't use.

ivankravets commented 2 months ago

Indeed, the ; is a valid symbol, this is a comment identifier. However, it should be split with space. For example,

monitor_filters =
    direct ; my comment