mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-26 14:54:35 +08:00
Merge branch 'master' of https://github.com/rt-thread/rt-thread into rtt_issues
This commit is contained in:
@@ -426,7 +426,7 @@ static rt_size_t _read_capacity(ufunction_t func, ustorage_cbw_t cbw)
|
||||
|
||||
data = (struct mstorage*)func->user_data;
|
||||
buf = data->ep_in->buffer;
|
||||
sector_count = data->geometry.sector_count;
|
||||
sector_count = data->geometry.sector_count - 1; /* Last Logical Block Address */
|
||||
sector_size = data->geometry.bytes_per_sector;
|
||||
|
||||
buf[0] = sector_count >> 24;
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
* 2011-12-12 Yi Qiu first version
|
||||
*/
|
||||
|
||||
#ifndef __HID_H__
|
||||
#define __HID_H__
|
||||
#ifndef __ADK_H__
|
||||
#define __ADK_H__
|
||||
|
||||
#include <rtthread.h>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user