mirror of
https://github.com/espressif/esp-idf.git
synced 2025-10-02 10:00:57 +02:00
Merge branch 'bugfix/twai_utils_down' into 'master'
fix(twai): fix the twai_utils's pytest to turn canbus down Closes IDFCI-3079 See merge request espressif/esp-idf!41238
This commit is contained in:
@@ -421,6 +421,7 @@ class CanBusManager:
|
||||
if self.bus:
|
||||
try:
|
||||
self.bus.shutdown()
|
||||
subprocess.run(['sudo', '-n', 'ip', 'link', 'set', self.interface, 'down'], check=True)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
Reference in New Issue
Block a user