Closed qazwsxedcrfvtg14 closed 5 years ago
At line 513 in src/adapter.ts const address = endpointNumber & (direction === "in" ? LIBUSB_ENDPOINT_IN : LIBUSB_ENDPOINT_OUT); I don`t understand why use "&"(and) here... Should this be "|"(or) operator?
const address = endpointNumber & (direction === "in" ? LIBUSB_ENDPOINT_IN : LIBUSB_ENDPOINT_OUT);
At line 513 in src/adapter.ts
const address = endpointNumber & (direction === "in" ? LIBUSB_ENDPOINT_IN : LIBUSB_ENDPOINT_OUT);
I don`t understand why use "&"(and) here... Should this be "|"(or) operator?