Power Saving (#169)

* Only turn on wifi if not eon

* Make sure esp is disabled on eon

* Dont disable ESP in early
This commit is contained in:
Nigel Armstrong
2019-03-13 20:58:00 -07:00
committed by rbiasini
parent c6eeaad667
commit 20c76ad592
3 changed files with 6 additions and 1 deletions

View File

@@ -250,6 +250,7 @@ class Panda(object):
pass
def flash(self, fn=None, code=None, reconnect=True):
print("flash: main version is " + self.get_version())
if not self.bootstub:
self.reset(enter_bootstub=True)
assert(self.bootstub)
@@ -270,7 +271,7 @@ class Panda(object):
code = f.read()
# get version
print("flash: version is " + self.get_version())
print("flash: bootstub version is " + self.get_version())
# do flash
Panda.flash_static(self._handle, code)