Skip to content

Commit

Permalink
tools: fix update script for firmwares which predate 'BOARD_TYPE' datum
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieDriver committed Oct 10, 2023
1 parent a41c341 commit eea8fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update_jade_fw.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ def _delta_appropriate(fw):
# Download compressed firmware file from Firmware Server using 'requests'
def download_file(verinfo, release):
# Workout hw_target subdir
hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo['BOARD_TYPE'])
hw_target = {'JADE': 'jade', 'JADE_V1.1': 'jade1.1'}.get(verinfo.get('BOARD_TYPE', 'jade'))
build_type = {'SB': '', 'DEV': 'dev'}.get(verinfo['JADE_FEATURES'])
if hw_target is None or build_type is None:
logger.error(f'Unsupported hardware: {verinfo["BOARD_TYPE"]} / {verinfo["JADE_FEATURES"]}')
logger.error(f'Unsupported hardware: {verinfo.get("BOARD_TYPE")} / {verinfo.get("JADE_FEATURES")}')
return None, None, None, None
hw_target += build_type

Expand Down

0 comments on commit eea8fba

Please sign in to comment.