diff options
| author | hathach <[email protected]> | 2019-05-14 11:46:22 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-05-14 11:46:22 +0700 |
| commit | 6135019230dd5e6c1c8cb17c83d20fabb500228d (patch) | |
| tree | a91e4a8bbd3e32d17b3c153afcf3d5df2176ace4 /src/class | |
| parent | fdc12db431c568ff4f3ff309f84f72c5d8475b2a (diff) | |
clean up
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_rndis_host.c | 2 | ||||
| -rw-r--r-- | src/class/hid/hid_host.c | 2 | ||||
| -rw-r--r-- | src/class/msc/msc_device.c | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/src/class/cdc/cdc_rndis_host.c b/src/class/cdc/cdc_rndis_host.c index 587e9ddc8..e5ae34b52 100644 --- a/src/class/cdc/cdc_rndis_host.c +++ b/src/class/cdc/cdc_rndis_host.c @@ -43,7 +43,7 @@ CFG_TUSB_MEM_SECTION static uint8_t msg_notification[CFG_TUSB_HOST_DEVICE_MAX][8]; CFG_TUSB_MEM_SECTION ATTR_ALIGNED(4) static uint8_t msg_payload[RNDIS_MSG_PAYLOAD_MAX]; -STATIC_VAR rndish_data_t rndish_data[CFG_TUSB_HOST_DEVICE_MAX]; +static rndish_data_t rndish_data[CFG_TUSB_HOST_DEVICE_MAX]; // TODO Microsoft requires message length for any get command must be at least 4096 bytes diff --git a/src/class/hid/hid_host.c b/src/class/hid/hid_host.c index 5aabbc01f..0e6437a20 100644 --- a/src/class/hid/hid_host.c +++ b/src/class/hid/hid_host.c @@ -111,7 +111,7 @@ bool tuh_hid_keyboard_is_busy(uint8_t dev_addr) //--------------------------------------------------------------------+
#if CFG_TUH_HID_MOUSE
-STATIC_VAR hidh_interface_info_t mouseh_data[CFG_TUSB_HOST_DEVICE_MAX]; // does not have addr0, index = dev_address-1
+static hidh_interface_info_t mouseh_data[CFG_TUSB_HOST_DEVICE_MAX]; // does not have addr0, index = dev_address-1
//------------- Public API -------------//
bool tuh_hid_mouse_is_mounted(uint8_t dev_addr)
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index c486d5e04..a07c926d7 100644 --- a/src/class/msc/msc_device.c +++ b/src/class/msc/msc_device.c @@ -80,7 +80,8 @@ static inline uint32_t rdwr10_get_lba(uint8_t const command[]) uint32_t lba;
memcpy(&lba, &p_rdwr10->lba, 4);
- return __be2n(lba);
+ // lba is in Big Endian format
+ return __be2n(lba);
}
static inline uint16_t rdwr10_get_blockcount(uint8_t const command[])
|
