X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Funi-t-dmm%2Fapi.c;h=b23fc02cb3e5791fd22babafc83f67db2d5702c5;hb=21d464a7e53efc9ac9810d9301a12b6a56fdb061;hp=05c1c47e4e0204c2b53ec9f4d771a3eaaacb37fa;hpb=4d7ddff75b8c23fc8d5355c480df029b130cec0c;p=libsigrok.git diff --git a/hardware/uni-t-dmm/api.c b/hardware/uni-t-dmm/api.c index 05c1c47e..b23fc02c 100644 --- a/hardware/uni-t-dmm/api.c +++ b/hardware/uni-t-dmm/api.c @@ -99,10 +99,15 @@ SR_PRIV struct dmm_info udmms[] = { &voltcraft_vc820_driver_info, receive_data_VOLTCRAFT_VC820, }, { + /* + * Note: The VC830 doesn't set the 'volt' and 'diode' bits of + * the FS9922 protocol. Instead, it only sets the user-defined + * bit "z1" to indicate "diode mode" and "voltage". + */ "Voltcraft", "VC-830", 2400, FS9922_PACKET_SIZE, NULL, sr_fs9922_packet_valid, sr_fs9922_parse, - NULL, + &sr_fs9922_z1_diode, &voltcraft_vc830_driver_info, receive_data_VOLTCRAFT_VC830, }, { @@ -149,7 +154,7 @@ static GSList *scan(GSList *options, int dmm) } } if (!conn) - conn = UNI_T_UT_D04_NEW; + return NULL; devices = NULL; if (!(usb_devices = sr_usb_find(drvc->sr_ctx->libusb_ctx, conn))) {