ソースを参照

Revert original parameter.

Wayne Lin 2 年 前
コミット
e6193bd131
1 ファイル変更1 行追加1 行削除
  1. 1 1
      demo/msc_ram_template.c

+ 1 - 1
demo/msc_ram_template.c

@@ -132,7 +132,7 @@ BLOCK_TYPE mass_block[BLOCK_COUNT];
 
 void usbd_msc_get_cap(uint8_t lun, uint32_t *block_num, uint16_t *block_size)
 {
-    *block_num = BLOCK_COUNT; //Pretend having so many buffer,not has actually.
+    *block_num = 1000; //Pretend having so many buffer,not has actually.
     *block_size = BLOCK_SIZE;
 }
 int usbd_msc_sector_read(uint32_t sector, uint8_t *buffer, uint32_t length)