Skip to content

Commit bca1fa4

Browse files
authored
Add wrongly removed statement back to codebase (#612)
* Add wrongly removed statement back to codebase This was removed in the process of making the linter happy. But it is required since it changes `num_channels`. * remove unused commented out logging
1 parent a7a9c09 commit bca1fa4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

can/interfaces/kvaser/canlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def __init__(self, channel, can_filters=None, **kwargs):
424424
self.single_handle = single_handle
425425

426426
num_channels = ctypes.c_int(0)
427-
# log.debug("Res: %d", canGetNumberOfChannels(ctypes.byref(num_channels)))
427+
canGetNumberOfChannels(ctypes.byref(num_channels))
428428
num_channels = int(num_channels.value)
429429
log.info("Found %d available channels", num_channels)
430430
for idx in range(num_channels):

0 commit comments

Comments
 (0)