mirror of
https://github.com/palera1n/palera1n.git
synced 2026-10-21 09:47:01 +02:00
fix(libusb): make this linux only
This commit is contained in:
1 parent
0744f1862d
commit
489c6651f9
1 file changed
+2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user