mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Reset OpenMV before running bootloader.
This commit is contained in:
parent
20560923b0
commit
ae718e8207
@ -115,7 +115,6 @@ class Bootloader:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def task_connect(self, state):
|
def task_connect(self, state):
|
||||||
openmv.disconnect()
|
|
||||||
try:
|
try:
|
||||||
# Attempt to connect to bootloader
|
# Attempt to connect to bootloader
|
||||||
openmv.init(self.port, self.baud, timeout=0.050)
|
openmv.init(self.port, self.baud, timeout=0.050)
|
||||||
@ -588,6 +587,8 @@ class OMVGtk:
|
|||||||
openmv.fb_update()
|
openmv.fb_update()
|
||||||
|
|
||||||
def bootloader_clicked(self, widget):
|
def bootloader_clicked(self, widget):
|
||||||
|
if (self.connected):
|
||||||
|
openmv.reset()
|
||||||
# Create bootloader object
|
# Create bootloader object
|
||||||
Bootloader(self.builder, self.config).run()
|
Bootloader(self.builder, self.config).run()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user