From 1735ebb320acc04c859af4bc4c05dce2a352f6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ga=C5=88o?= Date: Mon, 30 May 2022 15:45:51 +0200 Subject: [PATCH] Fixed comparsion of integer and string that evaluated always to False Closes https://github.com/espressif/esp-idf/issues/9052 Closes IDFGH-7482 --- tools/idf_monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(