Skip to content

Commit

Permalink
fix addr load
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Jun 14, 2019
1 parent 6e70182 commit ad70c0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helpAbout.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

versionMajor = 1
versionMinor = 2
versionDev = 0
versionDev = 1
date = "2019.6.14"

def strAbout():
Expand Down
4 changes: 2 additions & 2 deletions kflash_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,6 @@ def fileSelectShowBin(self, index, name, addr=None, prefix=None, prefixAuto=Fals
self.fileSelectLayout.addWidget(oneFilePathWidget)
self.fileSelectWidgets.append(["bin", oneFilePathWidget, oneFilePathWidgetLayout, filePathWidget, fileBurnAddrWidget, openFileButton, fileBurnEncCheckbox])
openFileButton.clicked.connect(lambda:self.selectFile(index))
if addr:
fileBurnAddrWidget.setText("0x%06x" %(addr))
# add ADD button
addoneWidget = QWidget()
addoneWidgetLayout = QHBoxLayout()
Expand All @@ -389,6 +387,8 @@ def fileSelectShowBin(self, index, name, addr=None, prefix=None, prefixAuto=Fals
self.fileSelectWidget_Prefix(index).setChecked(False)
elif prefix:
self.fileSelectWidget_Prefix(index).setChecked(True)
if addr:
self.fileSelectWidget_Addr(index).setText("0x%06x" %(addr))

# return: ("kfpkg", [(file path, burn addr, add prefix),...])
# or ("bin", file path)
Expand Down

0 comments on commit ad70c0f

Please sign in to comment.