if (dmm->packet_parse == sr_metex14_4packets_parse)
dmm->channel_count = 4;
for (ch_idx = 0; ch_idx < dmm->channel_count; ch_idx++) {
- snprintf(ch_name, sizeof(ch_name), "P%zu", ch_idx);
+ size_t ch_num;
+ ch_num = ch_idx + 1;
+ snprintf(ch_name, sizeof(ch_name), "P%zu", ch_num);
sr_channel_new(sdi, ch_idx, SR_CHANNEL_ANALOG, TRUE, ch_name);
}
devices = g_slist_append(devices, sdi);
2400, UT71X_PACKET_SIZE, 0, 0, NULL,
sr_ut71x_packet_valid, sr_ut71x_parse, NULL
),
- DMM(
- "voltcraft-vc96", vc96,
- "Voltcraft", "VC96", "1200/8n2", 1200,
- VC96_PACKET_SIZE, 0, 0, NULL,
- sr_vc96_packet_valid, sr_vc96_parse,
- NULL
- ),
DMM(
"uni-t-ut71c-ser", ut71x,
"UNI-T", "UT71C (UT-D02 cable)", "2400/7o1/rts=0/dtr=1",
sr_vc870_packet_valid, sr_vc870_parse, NULL
),
/* }}} */
+ /* vc96 based meters {{{ */
+ DMM(
+ "voltcraft-vc96", vc96,
+ "Voltcraft", "VC-96", "1200/8n2", 1200,
+ VC96_PACKET_SIZE, 0, 0, NULL,
+ sr_vc96_packet_valid, sr_vc96_parse,
+ NULL
+ ),
+ /* }}} */
/*
* The list is sorted. Add new items in the respective chip's group.
*/