mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-19 01:33:52 +08:00
cleanup old pedal stuff (#1552)
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
set -e
|
||||
|
||||
cd ..
|
||||
PEDAL=1 scons -u -j$(nproc)
|
||||
scons -u -j$(nproc)
|
||||
cd pedal
|
||||
|
||||
../../tests/pedal/enter_canloader.py ../obj/pedal.bin.signed
|
||||
../../tests/pedal/enter_canloader.py obj/pedal.bin.signed
|
||||
|
||||
@@ -4,7 +4,7 @@ set -e
|
||||
DFU_UTIL="dfu-util"
|
||||
|
||||
cd ..
|
||||
PEDAL=1 scons -u -j$(nproc)
|
||||
scons -u -j$(nproc)
|
||||
cd pedal
|
||||
|
||||
$DFU_UTIL -d 0483:df11 -a 0 -s 0x08004000 -D obj/pedal.bin.signed
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import time
|
||||
import subprocess
|
||||
import unittest
|
||||
|
||||
from panda import Panda, PandaJungle, CanHandle, McuType, BASEDIR
|
||||
@@ -44,7 +43,6 @@ class TestPedal(unittest.TestCase):
|
||||
return msgs
|
||||
|
||||
def test_usb_fw(self):
|
||||
subprocess.check_output(f"cd {BASEDIR} && PEDAL=1 PEDAL_USB=1 scons", shell=True)
|
||||
self._flash_over_can(PEDAL_BUS, f"{BASEDIR}/board/pedal/obj/pedal_usb.bin.signed")
|
||||
time.sleep(2)
|
||||
with Panda(PEDAL_SERIAL) as p:
|
||||
@@ -52,7 +50,6 @@ class TestPedal(unittest.TestCase):
|
||||
self.assertTrue(self._listen_can_frames() > 40)
|
||||
|
||||
def test_nonusb_fw(self):
|
||||
subprocess.check_output(f"cd {BASEDIR} && PEDAL=1 scons", shell=True)
|
||||
self._flash_over_can(PEDAL_BUS, f"{BASEDIR}board/pedal/obj/pedal.bin.signed")
|
||||
time.sleep(2)
|
||||
self.assertTrue(self._listen_can_frames() > 40)
|
||||
|
||||
Reference in New Issue
Block a user