mirror of
https://github.com/infiniteCable2/panda.git
synced 2026-02-18 17:23:52 +08:00
* Added pyflakes and Pylint for python * Actually run linter in CI * some simple pyflakes changes * Add flake8 to panda reqs for linter test * flake8 errors are fixed * run flake8 in regression tests * meant to run flake8 * hack to ignore unused import * bug * fix bugs in tucan_loopback * Another fix by using set_safety_mode * added pylintrc file * more fixes and enabled pylint as well * Fix pylint in circleci * added linter to readme
22 lines
419 B
Python
22 lines
419 B
Python
#!/usr/bin/env python3
|
|
import sys
|
|
from panda import Panda
|
|
|
|
def get_panda_password():
|
|
|
|
try:
|
|
print("Trying to connect to Panda over USB...")
|
|
p = Panda()
|
|
|
|
except AssertionError:
|
|
print("USB connection failed")
|
|
sys.exit(0)
|
|
|
|
wifi = p.get_serial()
|
|
#print('[%s]' % ', '.join(map(str, wifi)))
|
|
print("SSID: " + wifi[0])
|
|
print("Password: " + wifi[1])
|
|
|
|
if __name__ == "__main__":
|
|
get_panda_password()
|