diff options
| author | Henrik Sölver <henrik.solver@gmail.com> | 2016-05-06 19:11:49 +0200 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2016-05-08 12:47:33 +0100 |
| commit | c4587e24262c943adc75ae12b68bbeafe5b67642 (patch) | |
| tree | bfc14f5527d0bb48d9086c2d2725ded3046fb3e3 /tests/pyb/can.py | |
| parent | 87106d025bcbb7508e9be68efa57e800778365ab (diff) | |
stmhal/can: Allow to get existing CAN obj if constructed without args.
Initialisation of CAN objects should now behave as other peripheral
objects.
Fixes issue #2001.
Diffstat (limited to 'tests/pyb/can.py')
| -rw-r--r-- | tests/pyb/can.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/pyb/can.py b/tests/pyb/can.py index cf8089a3b..594d1d509 100644 --- a/tests/pyb/can.py +++ b/tests/pyb/can.py @@ -8,6 +8,7 @@ for bus in (-1, 0, 1, 2, 3, "YA", "YB", "YC"): print("CAN", bus) except ValueError: print("ValueError", bus) +CAN(1).deinit() CAN.initfilterbanks(14) can = CAN(1) |
