diff options
| author | HiFiPhile <[email protected]> | 2025-01-31 16:31:47 +0100 |
|---|---|---|
| committer | HiFiPhile <[email protected]> | 2025-02-02 14:01:15 +0100 |
| commit | 8d2310247c47160bf8de6e5f754284360ad7e937 (patch) | |
| tree | 11086249f3fc579229b06d8005145fc84859a0fe /examples | |
| parent | 2707347decb0ea362fd0a6e4d58102c77f366429 (diff) | |
Fix CI.
Signed-off-by: HiFiPhile <[email protected]>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/cdc_msc_freertos/src/msc_disk.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/device/cdc_msc_freertos/src/msc_disk.c b/examples/device/cdc_msc_freertos/src/msc_disk.c index c75b9ae34..c2aaca847 100644 --- a/examples/device/cdc_msc_freertos/src/msc_disk.c +++ b/examples/device/cdc_msc_freertos/src/msc_disk.c @@ -166,8 +166,10 @@ static void io_task(void *params) { uint8_t const* addr = msc_disk[io_ops.lba] + io_ops.offset; memcpy(io_ops.buffer, addr, io_ops.bufsize); } else { +#ifndef CFG_EXAMPLE_MSC_READONLY uint8_t* addr = msc_disk[io_ops.lba] + io_ops.offset; memcpy(addr, io_ops.buffer, io_ops.bufsize); +#endif } tusb_time_delay_ms_api(CFG_EXAMPLE_MSC_IO_DELAY_MS); |
