Skip to content

Commit b3cd0ad

Browse files
committed
fix winusb problem on windows 7
do not open rxurbs on device scan
1 parent dc0796a commit b3cd0ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/driver/CandleApiDriver/api/candle.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include "candle_ctrl_req.h"
2727
#include "ch_9.h"
2828

29+
static bool candle_dev_interal_open(candle_handle hdev);
30+
2931
static bool candle_read_di(HDEVINFO hdi, SP_DEVICE_INTERFACE_DATA interfaceData, candle_device_t *dev)
3032
{
3133
/* get required length first (this call always fails with an error) */
@@ -63,7 +65,7 @@ static bool candle_read_di(HDEVINFO hdi, SP_DEVICE_INTERFACE_DATA interfaceData,
6365
}
6466

6567
/* try to open to read device infos and see if it is avail */
66-
if (candle_dev_open(dev)) {
68+
if (candle_dev_interal_open(dev)) {
6769
dev->state = CANDLE_DEVSTATE_AVAIL;
6870
candle_dev_close(dev);
6971
} else {

0 commit comments

Comments
 (0)