Skip to content

Commit 80de8c3

Browse files
committed
update fw
1 parent 99a4cda commit 80de8c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

thonnycontrib/quecpython/fw/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,9 +289,9 @@ def fw_download(self, download_exe_path, fw_filepath, **extra):
289289
cmd = [download_exe_path, '-p', self.com_info['port'][3:], '-b', "921600", '-file', fw_filepath]
290290
print('------------------ FCM360W downloading factory package: ------------------')
291291
elif self.platform.upper() == "FC41D":
292-
pass
292+
raise ValueError('{} not supported!'.format(self.platform))
293293
else:
294-
pass
294+
raise ValueError('{} not supported!'.format(self.platform))
295295

296296
logger.info('run cmd: {}'.format(cmd))
297297
return run_cmd(cmd, self.platform, str(Path(download_exe_path).parent), **extra)

thonnycontrib/quecpython/fw/proc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,6 @@ def run_cmd(cmd, platform, cwd, **extra):
428428
# FCM360WAAMD-OP-04 test passed with `QPY_OCPU_BETA0001_FCM360W_FW`
429429
executor = _FCM360WExecutor(cmd, cwd)
430430
else:
431-
pass
431+
raise ValueError('{} not supported!'.format(platform))
432432

433433
return executor.progress_rate()

0 commit comments

Comments
 (0)