浏览代码

修改cache大小

wugren 3 年之前
父节点
当前提交
aea3f19220
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      hidapi/windows/hid.c
  2. 1 1
      src/HID.cc

+ 1 - 1
hidapi/windows/hid.c

@@ -149,7 +149,7 @@ extern "C" {
 		dev->device_handle = INVALID_HANDLE_VALUE;
 		dev->blocking = TRUE;
 		dev->output_report_length = 0;
-		dev->input_report_length = 2048;
+		dev->input_report_length = 524288;
 		dev->last_error_str = NULL;
 		dev->last_error_num = 0;
 		dev->read_pending = FALSE;

+ 1 - 1
src/HID.cc

@@ -40,7 +40,7 @@ using namespace std;
 using namespace v8;
 using namespace node;
 
-#define READ_BUFF_MAXSIZE 2048
+#define READ_BUFF_MAXSIZE 524288
 
 // //////////////////////////////////////////////////////////////////
 // Throwable error class that can be converted to a JavaScript