Skip to content

Commit af3c6be

Browse files
committed
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
1 parent ae364b1 commit af3c6be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/class/msc/msc_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ uint8_t rdwr10_validate_cmd(msc_cbw_t const* cbw)
203203
//--------------------------------------------------------------------+
204204
// Debug
205205
//--------------------------------------------------------------------+
206-
#if CFG_TUSB_DEBUG >= 2
206+
#if CFG_TUSB_DEBUG >= CFG_TUD_MSC_LOG_LEVEL
207207

208208
TU_ATTR_UNUSED tu_static tu_lookup_entry_t const _msc_scsi_cmd_lookup[] =
209209
{

0 commit comments

Comments
 (0)