Fixed comparsion of integer and string that evaluated always to False

Closes https://github.com/espressif/esp-idf/issues/9052
Closes IDFGH-7482
pull/9137/head
Martin Gaňo 2022-05-30 15:45:51 +02:00
rodzic ae0e3e2e2a
commit 221bf746d0
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -32,7 +32,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(