From 24e856a5099afa9a4738dcea19439c7c109c6eb7 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_base/argument_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/idf_monitor_base/argument_parser.py b/tools/idf_monitor_base/argument_parser.py index b0233bcc4e..53f75075c7 100644 --- a/tools/idf_monitor_base/argument_parser.py +++ b/tools/idf_monitor_base/argument_parser.py @@ -27,7 +27,7 @@ def get_parser(): # type: () -> argparse.ArgumentParser '--disable-address-decoding', '-d', help="Don't print lines about decoded addresses from the application ELF file", action='store_true', - default=os.environ.get('ESP_MONITOR_DECODE') == 0 + default=os.getenv('ESP_MONITOR_DECODE') == '0' ) parser.add_argument(