Python build script fix

This commit is contained in:
Bertrand Songis
2016-03-26 12:48:47 +01:00
parent d609158b27
commit 0273038289
+1 -1
View File
@@ -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)