X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Fserial-dmm%2Fapi.c;h=9e050af7706a598fdd00717b39dcd84d1c251b89;hp=1b9a810b4a91378951540ec2eeb8e5168861400c;hb=6bee394deeedd22a54126bd2ec93702385b4b99b;hpb=0931639a12e388aa5206c64d4d937f070d7453b2 diff --git a/src/hardware/serial-dmm/api.c b/src/hardware/serial-dmm/api.c index 1b9a810b..9e050af7 100644 --- a/src/hardware/serial-dmm/api.c +++ b/src/hardware/serial-dmm/api.c @@ -127,7 +127,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) * happen to provide them. (This is a compromise to do it here, * and not extend the DMM_CONN() et al set of macros.) */ - if (dmm->packet_parse == sr_brymen_bm52x_parse) { + if (strcmp(dmm->di.name, "brymen-bm52x") == 0) { + /* Applicable to BM520s but not to BM820s. */ dmm->dmm_state_init = brymen_bm52x_state_init; dmm->dmm_state_free = brymen_bm52x_state_free; dmm->config_get = brymen_bm52x_config_get; @@ -379,6 +380,13 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers, sr_brymen_bm52x_packet_valid, sr_brymen_bm52x_parse, NULL ), + DMM_CONN( + "brymen-bm82x", brymen_bm52x, "Brymen", "BM82x", + "hid/bu86x", NULL, BRYMEN_BM52X_PACKET_SIZE, 4000, 500, + sr_brymen_bm82x_packet_request, + sr_brymen_bm82x_packet_valid, sr_brymen_bm52x_parse, + NULL + ), /* }}} */ /* bm85x based meters {{{ */ DMM_LEN(