diff --git a/tools/idf_monitor.py b/tools/idf_monitor.py index 7b744b6081..40f2e83717 100755 --- a/tools/idf_monitor.py +++ b/tools/idf_monitor.py @@ -1010,7 +1010,7 @@ def main(): '--disable-address-decoding', '-d', help="Don't print lines about decoded addresses from the application ELF file.", action='store_true', - default=True if os.environ.get('ESP_MONITOR_DECODE') == 0 else False + default=os.getenv('ESP_MONITOR_DECODE') == '0' ) parser.add_argument(