analogdevicesinc / pyadi-iio

Python interfaces for ADI hardware with IIO drivers (aka peyote)
https://analogdevicesinc.github.io/pyadi-iio
Other
134 stars 99 forks source link

adi/ad908[1|4]_mc.py: Fix label parsing in _map_to_dict() #490

Closed mhennerich closed 8 months ago

mhennerich commented 8 months ago

Description

In recent kernels the IIO core adds labels for all channels with extended names. This now causes undesired behavior. Before splitting, check if the split string is part of the string. This will also catch the 'buffer_only' case.

Type of change

How has this been tested?

On HW using Linux 6.1

Test Configuration:

Documentation

If this is a new feature or example please mention or link any documentation. All new hardware interface classes require documentation.

github-actions[bot] commented 8 months ago

Unit Test Results

1 249 tests  ±0      247 :heavy_check_mark: ±0   5m 6s :stopwatch: +6s        1 suites ±0   1 002 :zzz: ±0         1 files   ±0          0 :x: ±0 

Results for commit 3aec7b78. ± Comparison against base commit 1ee26586.

:recycle: This comment has been updated with latest results.

github-actions[bot] commented 8 months ago

Generated documentation for this PR is available at Link