-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
The number of (enabled) AI/DI ports on the Digitizer on different occasions is counted by looping on all AI's / DI's. Here an example:
gr-digitizers/lib/digitizer_block_impl.cc
Lines 615 to 626 in 19061f7
| int num_enabled_ai_channels = 0; | |
| int num_enabled_di_ports = 0; | |
| for (auto i = 0; i < d_ai_channels; i++) { | |
| if (d_channel_settings[i].enabled) { | |
| num_enabled_ai_channels++; | |
| } | |
| } | |
| for (auto i = 0; i < d_ports; i++) { | |
| if (d_port_settings[i].enabled) { | |
| num_enabled_di_ports++; | |
| } | |
| } |
Instead, provide a method which returns the number