- if (pg_type == PG_NONE) {
- sr_err("No probe group specified.");
- return SR_ERR_PROBE_GROUP;
- } else if (pg_type == PG_ANALOG) {
+ if (cg_type == CG_NONE) {
+ sr_err("No channel group specified.");
+ return SR_ERR_CHANNEL_GROUP;
+ } else if (cg_type == CG_ANALOG) {