Skip to content

Commit bc2dd43

Browse files
pierreluctgfelixdivo
authored andcommitted
IsOpen should not be use to check if bus is open (hardbyte#381)
1 parent 2920ff5 commit bc2dd43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

can/interfaces/ics_neovi/neovi_bus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _recv_internal(self, timeout=0.1):
242242
return msg, False
243243

244244
def send(self, msg, timeout=None):
245-
if not self.dev.IsOpen:
245+
if not ics.validate_hobject(self.dev):
246246
raise CanError("bus not open")
247247

248248
flags = 0

0 commit comments

Comments
 (0)