mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-29 09:00:35 +00:00
Set default parameter for get_channels_for_device
Optional device specifier: Adjusted get_channels_for_device function to include a default empty string parameter. Enables calls without specifying a device, reducing the need for client code to handle default cases explicitly.
This commit is contained in:
parent
ce89c445d7
commit
8874795fd0
1 changed files with 1 additions and 1 deletions
|
@ -723,6 +723,6 @@ def get_device_list():
|
||||||
cdef vector[string] devices = getDeviceList()
|
cdef vector[string] devices = getDeviceList()
|
||||||
return [device.decode('utf-8') for device in devices]
|
return [device.decode('utf-8') for device in devices]
|
||||||
|
|
||||||
def get_channels_for_device(device):
|
def get_channels_for_device(device = ""):
|
||||||
cdef pair[int, int] channels = getChannelsFromInfo(device)
|
cdef pair[int, int] channels = getChannelsFromInfo(device)
|
||||||
return channels.first, channels.second
|
return channels.first, channels.second
|
||||||
|
|
Loading…
Reference in a new issue