fix linter
parent
5d6fcbb422
commit
abeafb6256
|
@ -61,7 +61,7 @@ jobs:
|
||||||
- name: Push image
|
- name: Push image
|
||||||
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/panda'
|
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/panda'
|
||||||
run: |
|
run: |
|
||||||
docker login -u wmelching -p ${{ secrets.DOCKERHUB_TOKEN }}
|
docker login -u wmelching -p ${{ secrets.COMMA_DOCKERHUB_TOKEN }}
|
||||||
docker tag panda_esp docker.io/commaai/panda_esp:latest
|
docker tag panda_esp docker.io/commaai/panda_esp:latest
|
||||||
docker push docker.io/commaai/panda_esp:latest
|
docker push docker.io/commaai/panda_esp:latest
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,6 @@
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import random
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
from hexdump import hexdump
|
|
||||||
from itertools import permutations
|
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
|
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), ".."))
|
||||||
from panda import Panda # noqa: E402
|
from panda import Panda # noqa: E402
|
||||||
|
@ -27,11 +22,11 @@ def set_speed_kbps(p, speed):
|
||||||
else:
|
else:
|
||||||
p.set_can_speed_kbps(OTHER_GMLAN_BUS, speed)
|
p.set_can_speed_kbps(OTHER_GMLAN_BUS, speed)
|
||||||
|
|
||||||
def send(p, id, msg):
|
def send(p, id_, msg):
|
||||||
if p.is_white():
|
if p.is_white():
|
||||||
p.can_send(id, msg, WHITE_GMLAN_BUS)
|
p.can_send(id_, msg, WHITE_GMLAN_BUS)
|
||||||
else:
|
else:
|
||||||
p.can_send(id, msg, OTHER_GMLAN_BUS)
|
p.can_send(id_, msg, OTHER_GMLAN_BUS)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
pl = Panda.list()
|
pl = Panda.list()
|
||||||
|
|
Loading…
Reference in New Issue