Skip to content
Permalink
Browse files

Update Panda

  • Loading branch information...
legonigel committed Feb 21, 2019
1 parent 0207a97 commit 5c8aa7295dae48e92f898428c392ec491f197a31
Showing with 8 additions and 2 deletions.
  1. +8 −2 panda/python/__init__.py
@@ -8,6 +8,7 @@
import os
import time
import traceback
import subprocess
from dfu import PandaDFU
from esptool import ESPROM, CesantaFlasher
from flash_release import flash_release
@@ -25,7 +26,13 @@

def build_st(target, mkfile="Makefile"):
from panda import BASEDIR
assert(os.system('cd %s && make -f %s clean && make -f %s %s >/dev/null' % (os.path.join(BASEDIR, "board"), mkfile, mkfile, target)) == 0)
cmd = 'cd %s && make -f %s clean && make -f %s %s >/dev/null' % (os.path.join(BASEDIR, "board"), mkfile, mkfile, target)
try:
output = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
except subprocess.CalledProcessError as exception:
output = exception.output
returncode = exception.returncode
raise

def parse_can_buffer(dat):
ret = []
@@ -541,4 +548,3 @@ def kline_recv(self, bus=2):
msg = self.kline_ll_recv(2, bus=bus)
msg += self.kline_ll_recv(ord(msg[1])-2, bus=bus)
return msg

0 comments on commit 5c8aa72

Please sign in to comment.
You can’t perform that action at this time.