diff options
| author | HiFiPhile <[email protected]> | 2025-01-22 21:22:32 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-01-22 21:22:32 +0100 |
| commit | bd0875358347b5c062bab897f2fcfe28de5a13d3 (patch) | |
| tree | f3a393c280faf77542c76068a9097be060fe68ae /examples/device | |
| parent | 586d284e6b92fb743c04553c20a6874c7226ee82 (diff) | |
Fix CI.
Diffstat (limited to 'examples/device')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/msc_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/device/cdc_msc_freertos/src/msc_disk.c b/examples/device/cdc_msc_freertos/src/msc_disk.c index f48d976f2..e13c24436 100644 --- a/examples/device/cdc_msc_freertos/src/msc_disk.c +++ b/examples/device/cdc_msc_freertos/src/msc_disk.c @@ -193,7 +193,7 @@ int32_t tud_msc_read10_cb(uint8_t lun, uint32_t lba, uint32_t offset, void* buff if ( lba >= DISK_BLOCK_NUM ) return -1; // Check for overflow of offset + bufsize if ( offset + bufsize >= DISK_BLOCK_SIZE ) return -1; - + uint8_t const* addr = msc_disk[lba] + offset; memcpy(buffer, addr, bufsize); |
