Skip to content

Commit 1e8fa51

Browse files
authored
Fix mcu_type in jungle (#2300)
should fix jungle
1 parent ea5dcee commit 1e8fa51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

board/jungle/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def wrapper(self, *args, **kwargs):
2323

2424
class PandaJungleDFU(PandaDFU):
2525
def recover(self):
26-
fn = os.path.join(FW_PATH, self._mcu_type.config.bootstub_fn.replace("panda", "panda_jungle"))
26+
fn = os.path.join(FW_PATH, self.get_mcu_type().config.bootstub_fn.replace("panda", "panda_jungle"))
2727
with open(fn, "rb") as f:
2828
code = f.read()
2929
self.program_bootstub(code)
@@ -52,7 +52,7 @@ def spi_connect(cls, serial, ignore_version=False):
5252

5353
def flash(self, fn=None, code=None, reconnect=True):
5454
if not fn:
55-
fn = os.path.join(FW_PATH, self._mcu_type.config.app_fn.replace("panda", "panda_jungle"))
55+
fn = os.path.join(FW_PATH, self.get_mcu_type().config.app_fn.replace("panda", "panda_jungle"))
5656
super().flash(fn=fn, code=code, reconnect=reconnect)
5757

5858
def recover(self, timeout: int | None = 60, reset: bool = True) -> bool:

0 commit comments

Comments
 (0)