Skip to content

Commit 975107c

Browse files
committed
Fix endpoint.transfer
1 parent 5dc58ae commit 975107c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/endpoint.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ namespace NodeUsb {
158158
THROW_BAD_ARGS("Transfer is used in the wrong direction (IN/OUT) for this endpoint");
159159
}
160160

161+
DEBUG_OPT("Submitting transfer %x (%i: %p)", modus, length, buf);
162+
161163
NodeUsb::Transfer* t = Transfer::newTransfer(
162164
self->transfer_type,
163-
args.This(),
165+
self->v8device,
164166
self->descriptor->bEndpointAddress,
165167
buf,
166168
length,

0 commit comments

Comments
 (0)