Merge panda subtree

old-commit-hash: 97a289e6a9
This commit is contained in:
Vehicle Researcher
2019-10-31 17:02:31 -07:00
123 changed files with 2974 additions and 425 deletions
+1 -4
View File
@@ -19,10 +19,7 @@ class PandaSerial(object):
def write(self, dat):
#print "W: ", dat.encode("hex")
#print ' pigeon_send("' + ''.join(map(lambda x: "\\x%02X" % ord(x), dat)) + '");'
if(isinstance(dat, bytes)):
return self.panda.serial_write(self.port, dat)
else:
return self.panda.serial_write(self.port, str.encode(dat))
return self.panda.serial_write(self.port, dat)
def close(self):
pass