Dcp remove (#168)

* No DCP charge mode when building from EON
This commit is contained in:
rbiasini
2019-03-11 23:41:40 -07:00
committed by GitHub
parent e437b9b4b1
commit a6193a8285
5 changed files with 19 additions and 9 deletions

View File

@@ -270,7 +270,7 @@ class Panda(object):
code = f.read()
# get version
print("flash: version is "+self.get_version())
print("flash: version is " + self.get_version())
# do flash
Panda.flash_static(self._handle, code)

View File

@@ -8,6 +8,8 @@ def ensure_st_up_to_date():
with open(os.path.join(BASEDIR, "VERSION")) as f:
repo_version = f.read()
repo_version += "-EON" if os.path.isfile('/EON') else "-DEV"
panda = None
panda_dfu = None
should_flash_recover = False
@@ -24,7 +26,7 @@ def ensure_st_up_to_date():
if len(panda_dfu) > 0:
panda_dfu = PandaDFU(panda_dfu[0])
panda_dfu.recover()
print "waiting for board..."
time.sleep(1)