image/flash: actually use --split-size

This commit is contained in:
InsanePrawn 2023-04-26 13:26:16 +02:00
parent 6648a77822
commit 3ac8fc0689

View file

@ -103,7 +103,7 @@ def cmd_flash(
fastboot_flash(
partition=location,
file=image_path,
sparse_size='100M', # TODO: make configurable
sparse_size=split_size if split_size is not None else '100M',
)
elif method in [JUMPDRIVE, DD]:
if method == DD or location.startswith("/") or (location not in LOCATIONS and os.path.exists(location)):