Browse Source

Fix last % formatter. This was auto unpacking a tuple

sensors
Ryan Jarvis 5 years ago
parent
commit
4515114b89
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/memanalyzer.py

+ 2
- 2
code/memanalyzer.py View File

@ -101,8 +101,8 @@ def analyse_memory(elf_file):
def run(env_, modules_): def run(env_, modules_):
flags = "" flags = ""
for item in modules_.items():
flags += "-D%s_SUPPORT=%d " % item
for k, v in modules_.items():
flags += "-D{}_SUPPORT={:d} ".format(k, v)
command = "ESPURNA_BOARD=\"WEMOS_D1_MINI_RELAYSHIELD\" ESPURNA_FLAGS=\"{}\" platformio run --silent --environment {} 2>/dev/null".format(flags, env_) command = "ESPURNA_BOARD=\"WEMOS_D1_MINI_RELAYSHIELD\" ESPURNA_FLAGS=\"{}\" platformio run --silent --environment {} 2>/dev/null".format(flags, env_)
subprocess.check_call(command, shell=True) subprocess.check_call(command, shell=True)


Loading…
Cancel
Save