加入 pickle.loads 讀取暫存資料

This commit is contained in:
dragonpilot
2019-07-13 22:45:34 +10:00
parent 99be18e32f
commit 1253f1eebb
+3 -3
View File
@@ -84,9 +84,9 @@ def fingerprint(logcan, sendcan):
frame = 0
if params.get("DragonCacheCar") == "1" and params.get("DragonCachedFP") != "" and params.get("DragonCachedModel") != "":
candidate_cars = params.get("DragonCachedModel")
finger = params.get("DragonCachedFP")
vin = params.get("DragonCachedVIN")
candidate_cars = pickle.loads(params.get("DragonCachedModel"))
finger = pickle.loads(params.get("DragonCachedFP"))
vin = pickle.loads(params.get("DragonCachedVIN"))
else:
while True:
a = messaging.recv_one(logcan)