diff options
| author | Ha Thach <[email protected]> | 2026-04-02 11:31:11 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-02 11:31:11 +0700 |
| commit | 871b843245666786857f54b7ffc1454d4acad7a0 (patch) | |
| tree | fa1d515702aab8de32a957f85c5b38bf1d6bf0dc /examples/host/cdc_msc_hid/src | |
| parent | eae25b531dff32636aecb21ca4a8a3ac8e391fc3 (diff) | |
| parent | b6f04f8643e5ca1efe2b8f9754427f5e5a0303e7 (diff) | |
Merge pull request #3561 from hathach/rp2040-hcd-epx
rp2 hcd rework: epx for non-interrupt and ping-pong double buffered
Diffstat (limited to 'examples/host/cdc_msc_hid/src')
| -rw-r--r-- | examples/host/cdc_msc_hid/src/msc_app.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/host/cdc_msc_hid/src/msc_app.c b/examples/host/cdc_msc_hid/src/msc_app.c index dd4e22d7f..8181bdcb9 100644 --- a/examples/host/cdc_msc_hid/src/msc_app.c +++ b/examples/host/cdc_msc_hid/src/msc_app.c @@ -41,14 +41,14 @@ static bool inquiry_complete_cb(uint8_t dev_addr, tuh_msc_complete_data_t const } // Print out Vendor ID, Product ID and Rev - printf("%.8s %.16s rev %.4s\r\n", inquiry_resp.vendor_id, inquiry_resp.product_id, inquiry_resp.product_rev); + printf("%.8s %.16s %.4s\r\n", inquiry_resp.vendor_id, inquiry_resp.product_id, inquiry_resp.product_rev); // Get capacity of device uint32_t const block_count = tuh_msc_get_block_count(dev_addr, cbw->lun); uint32_t const block_size = tuh_msc_get_block_size(dev_addr, cbw->lun); - printf("Disk Size: %" PRIu32 " MB\r\n", block_count / ((1024*1024)/block_size)); - printf("Block Count = %" PRIu32 ", Block Size: %" PRIu32 "\r\n", block_count, block_size); + printf("Disk Size: %" PRIu32 " %" PRIu32 "-byte blocks: %" PRIu32 " MB\r\n", + block_count, block_size, block_count / ((1024 * 1024) / block_size)); return true; } |
