Fix upgrade typo (#818)

This commit is contained in:
Tim Wilkinson 2023-05-03 17:21:52 -07:00 committed by GitHub
parent 58d662fb05
commit 8f572af4c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ if parms.button_dl_fw and parms.dl_fw ~= "default" then
local fwimage
for _, image in ipairs(fwinfo.images)
do
if (firmware.type == "bin" and (image.type == "sysupgrade" or image.type == "nand-sysupgrade")) or (firmware_type == "gz" and image.type == "combined") then
if (firmware_type == "bin" and (image.type == "sysupgrade" or image.type == "nand-sysupgrade")) or (firmware_type == "gz" and image.type == "combined") then
fwimage = {
url = fw_versions[parms.dl_fw].target .. "/" .. image.name,
sha = image.sha256