cleanup panda mcu definitions (#27104)

* cleanup panda mcu definitions

* cleanup panda mcu definitions

* bump

* panda master
This commit is contained in:
Adeeb Shihadeh
2023-01-26 21:05:39 -08:00
committed by GitHub
parent 50fc560b43
commit 1d9b4c2248
2 changed files with 3 additions and 5 deletions
+1 -1
Submodule panda updated: ae051c94a3...76d0459182
+2 -4
View File
@@ -7,7 +7,7 @@ import subprocess
from typing import List, NoReturn
from functools import cmp_to_key
from panda import DEFAULT_FW_FN, DEFAULT_H7_FW_FN, MCU_TYPE_H7, Panda, PandaDFU
from panda import Panda, PandaDFU
from common.basedir import BASEDIR
from common.params import Params
from system.hardware import HARDWARE
@@ -15,10 +15,8 @@ from system.swaglog import cloudlog
def get_expected_signature(panda: Panda) -> bytes:
fn = DEFAULT_H7_FW_FN if (panda.get_mcu_type() == MCU_TYPE_H7) else DEFAULT_FW_FN
try:
return Panda.get_signature_from_firmware(fn)
return Panda.get_signature_from_firmware(panda.get_mcu_type().config.app_path)
except Exception:
cloudlog.exception("Error computing expected signature")
return b""