Browse Source

Fix memanalyzer issue

ech1560
Xose Pérez 6 years ago
parent
commit
31436ead43
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      code/espurna/config/all.h
  2. +2
    -2
      code/memanalyzer.py

+ 1
- 1
code/espurna/config/all.h View File

@ -29,9 +29,9 @@
#include "hardware.h"
#include "defaults.h"
#include "general.h"
#include "dependencies.h"
#include "prototypes.h"
#include "sensors.h"
#include "dependencies.h"
#include "progmem.h"
#include "debug.h"


+ 2
- 2
code/memanalyzer.py View File

@ -55,7 +55,7 @@ def file_size(file):
def analyse_memory(elf_file):
command = "%s -t '%s' " % (objdump_binary, elf_file)
command = "%s -t '%s'" % (objdump_binary, elf_file)
response = subprocess.check_output(shlex.split(command))
if isinstance(response, bytes):
response = response.decode('utf-8')
@ -102,7 +102,7 @@ def run(env_, modules_):
flags = ""
for item in modules_.items():
flags += "-D%s_SUPPORT=%d " % item
command = "export ESPURNA_BOARD=\"WEMOS_D1_MINI_RELAYSHIELD\"; export ESPURNA_FLAGS=\"%s\"; platformio run --silent --environment %s" % (flags, env_)
command = "export ESPURNA_BOARD=\"WEMOS_D1_MINI_RELAYSHIELD\"; export ESPURNA_FLAGS=\"%s\"; platformio run --silent --environment %s 2>/dev/null" % (flags, env_)
subprocess.check_call(command, shell=True)


Loading…
Cancel
Save