Skip to content

Commit cdbae99

Browse files
committed
Modified IntelHex tofile parameter to use path.
Py3 open(...) returns a BufferedReader instead of a file.
1 parent e655377 commit cdbae99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/build_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ def merge_region_list(region_list, destination, notify, padding=b'\xFF'):
459459
notify.info("Space used after regions merged: 0x%x" %
460460
(merged.maxaddr() - merged.minaddr() + 1))
461461
with open(destination, "wb+") as output:
462-
merged.tofile(output, format=format.strip("."))
462+
merged.tofile(destination, format=format.strip("."))
463463

464464
def scan_resources(src_paths, toolchain, dependencies_paths=None,
465465
inc_dirs=None, base_path=None, collect_ignores=False):

0 commit comments

Comments
 (0)