Add factory to download name (#3040)

This commit is contained in:
Paulus Schoutsen 2022-01-12 22:35:30 -08:00 committed by Jesse Hills
parent c81323ef91
commit d6009453df
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -416,7 +416,7 @@ class DownloadBinaryRequestHandler(BaseHandler):
if storage_json is None:
self.send_error(404)
return
filename = f"{storage_json.name}.bin"
filename = f"{storage_json.name}-factory.bin"
path = storage_json.firmware_bin_path.replace(
"firmware.bin", "firmware-factory.bin"
)