2
0
forked from Ivasoft/DSView

code clean

This commit is contained in:
DreamSourceLab
2022-04-23 16:40:00 +08:00
parent 2e9c71572e
commit 9fc9b1d7bd
11 changed files with 60 additions and 108 deletions

View File

@@ -288,9 +288,6 @@ static GSList *scan(GSList *options)
/* Find all DSLogic compatible devices and upload firmware to them. */
devices = NULL;
libusb_get_device_list(drvc->sr_ctx->libusb_ctx, &devlist);
int stdnum = 0;
for (i = 0; devlist[i]; i++) {
if (conn) {
usb = NULL;
@@ -317,8 +314,6 @@ static GSList *scan(GSList *options)
(usb_speed != LIBUSB_SPEED_SUPER))
continue;
stdnum++;
prof = NULL;
for (j = 0; supported_DSLogic[j].vid; j++) {
if (des.idVendor == supported_DSLogic[j].vid &&

View File

@@ -168,9 +168,8 @@ static const struct DEMO_profile supported_Demo[] = {
(1 << DEMO_LOGIC100x16) |
(1 << DEMO_ANALOG10x2) |
(1 << DEMO_DSO200x2),
//SR_Mn(100),
SR_Gn(16),
SR_Kn(20),
SR_Mn(100),
SR_Kn(20),
0,
vdivs10to2000,
0,