| 229 | } |
| 230 | |
| 231 | bool DeviceAgent::channel_is_enable(int index) |
| 232 | { |
| 233 | for (const GSList *l = get_channels(); l; l = l->next) |
| 234 | { |
| 235 | const sr_channel *const probe = (const sr_channel *)l->data; |
| 236 | if (probe->index == index) |
| 237 | return probe->enabled; |
| 238 | } |
| 239 | |
| 240 | return false; |
| 241 | } |
| 242 | |
| 243 | //---------------device config-----------/ |
| 244 |
no test coverage detected