Skip to content

Commit

Permalink
SE-2289 added back compatibility for DNNStatus
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-martin committed Jun 2, 2023
1 parent 1970df5 commit 44ef673
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion utility/uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ def __init__(self, address, flag_name, status_name, device, filename, parent=Non
self.calibrate = not self.filename.lower().endswith(".tar")
if not self.calibrate:
self.flag = self.device.GetParameters().Get(flag_name)
self.status = self.device.GetParameters().Get(status_name)
for name in status_name:
self.status = self.device.GetParameters().Get(name)
if self.status is not None:
break

if flag_name.lower().find('weight') > 0:
self.reset_flag = True
Expand Down
4 changes: 2 additions & 2 deletions utility/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ def handle_upload(self):

if ftype == "Firmware":
update_flag = "EnableUpdate"
update_status = "UpdateStatus"
update_status = ["UpdateStatus"]
elif ftype == "DNN Weights":
update_flag = "EnableWeightsUpdate"
update_status = "WeightsStatus"
update_status = ["WeightsStatus", "DNNStatus"]
elif ftype == "Calibration":
update_flag = None
update_status = None
Expand Down

0 comments on commit 44ef673

Please sign in to comment.