From 02730382892b029a2e2f3631ab0592eb8cd54391 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sat, 26 Mar 2016 12:48:47 +0100 Subject: [PATCH] Python build script fix --- radio/util/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/util/build.py b/radio/util/build.py index 242907d0d..814755eab 100644 --- a/radio/util/build.py +++ b/radio/util/build.py @@ -209,7 +209,7 @@ if not os.path.isfile(path): if board_family == BOARD_FAMILY_ARM: size = os.stat(firmware).st_size else: - size = subprocess.check_output('avr-size -A %s | grep Total | cut -f2- -d " "' % firmware, shell=True) + size = subprocess.check_output('avr-size -A %s | grep Total | cut -f2- -d " "' % target, shell=True) size = int(size.strip()) if size > maxsize: exit(FIRMWARE_SIZE_TOO_BIG)