diff options
| author | Jonathan Zentgraf <[email protected]> | 2024-01-20 20:16:54 -0500 |
|---|---|---|
| committer | Jonathan Zentgraf <[email protected]> | 2024-01-20 20:19:02 -0500 |
| commit | af3c6be79fe9a9829f30831bd7525d2a22cb5529 (patch) | |
| tree | 25a83e44fa8ab5a06363b96982d80f4a19394f24 /src | |
| parent | ae364b1460b91153cd94b4b0303eeda6419ff1d1 (diff) | |
msc_device: Fix check for including MSC lookup tables
The _msc_scsi_cmd_lookup and _msc_scsi_cmd_table variables are needed
when logging is enabled for the MSC device via CFG_TUD_MSC_LOG_LEVEL.
Update the preprocessor check around them to use that definition when
deciding whether to define those variables.
Closes #2419
Diffstat (limited to 'src')
| -rw-r--r-- | src/class/msc/msc_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/msc/msc_device.c b/src/class/msc/msc_device.c index 2589dcd2c..c145d86a6 100644 --- a/src/class/msc/msc_device.c +++ b/src/class/msc/msc_device.c @@ -203,7 +203,7 @@ uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw) //--------------------------------------------------------------------+ // Debug //--------------------------------------------------------------------+ -#if CFG_TUSB_DEBUG >= 2 +#if CFG_TUSB_DEBUG >= CFG_TUD_MSC_LOG_LEVEL TU_ATTR_UNUSED tu_static tu_lookup_entry_t const _msc_scsi_cmd_lookup[] = { |
