Skip to content

Commit

Permalink
fix: 修复获取固件失败后程序崩溃问题
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed May 13, 2024
1 parent 7cb1baf commit 8561b4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def scan_device_config(self):
def choose_device_callback(self):
self.put_log(f"[操作]切换设备类型{self.form.deviceTypeComboBox.currentText()}")
board_bin = self.download.get_version_data()
# print(board_bin)
board = self.board_map[self.form.deviceTypeComboBox.currentIndex()]
self.form.binAddress.setText(board_bin[board])
if board_bin: # fix: https://fishros.org.cn/forum/topic/2502
board = self.board_map[self.form.deviceTypeComboBox.currentIndex()]
self.form.binAddress.setText(board_bin[board])

def choose_config_callback(self):
key = self.form.configKeyComboBox.currentText()
Expand Down
2 changes: 1 addition & 1 deletion release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
版本更新:
- [fix]修复无FishBot Cmaera选项问题
- [fix]修复获取固件失败后程序崩溃问题:https://fishros.org.cn/forum/topic/2502/


版本说明:
Expand Down
6 changes: 6 additions & 0 deletions test/test_dic.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
a = {}

if a:
print('0000')
else:
print('1111')

0 comments on commit 8561b4c

Please sign in to comment.