Closed pletch closed 3 years ago
I'm not familiar with the monitor_dtr
setting at all -- but there's quite a bit of functionality that you guys seem to have tracked down for platformio.ini files, so I figured I'd leave it alone. Easy enough to remove if it doesn't need to be there!
Resetting the device when you connect a serial monitor is the default behavior. If you think back to BrewPi, that's why the Arduino resets when the script starts. I don't think we need these settings at all - I do not use them in my projects. I just expect the reset and don't worry about it much.
if you "upload and monitor" it will re-attach right after and you don't have to think about it.
(or maybe I'm misunderstanding you.)
I believe this setting polluted the platformio.ini during one of my commits.
One of the ESP32 boards I was using would always reboot when attaching monitor and this was an attempt to eliminate. However, I have actually tracked down some instability with serial connection & debugging to using a setting of 1. I am now using 0 as a default. Not sure if others have had any weird issues related to this??