fix(libusb): make this linux only

This commit is contained in:
CLARATION committed 2026-07-06 19:48:30 -07:00
1 parent 0744f1862d
commit 489c6651f9
1 file changed
+2
+2
View File
@@ -128,6 +128,7 @@ bool send_interface_bulk_transfer(const usb_handle_t *handle, void *data, int le
{
return r;
}
#if defined(__linux__)
// We only get here on ENOMEM
FILE *f = fopen("/sys/module/usbcore/parameters/usbfs_memory_mb", "r");
if(f)
@@ -146,6 +147,7 @@ bool send_interface_bulk_transfer(const usb_handle_t *handle, void *data, int le
maxLen = (uint32_t)(max << 19);
}
else
#endif
{
// Just 1MB by default?
maxLen = 0x100000;