diff --git a/src/limedriver/limedriver.pyx b/src/limedriver/limedriver.pyx index c47e190..039da97 100644 --- a/src/limedriver/limedriver.pyx +++ b/src/limedriver/limedriver.pyx @@ -724,5 +724,5 @@ def get_device_list(): return [device.decode('utf-8') for device in devices] def get_channels_for_device(device = ""): - cdef pair[int, int] channels = getChannelsFromInfo(device) + cdef pair[int, int] channels = getChannelsFromInfo(device.encode()) return channels.first, channels.second