mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Correct #if to #ifdef when the macro can be undefined. Fix bug in AT24XX driver: it should compare AT24XX_ADDRSIZE to 2.
This commit is contained in:
@@ -934,7 +934,7 @@ int usbmsc_setconfig(FAR struct usbmsc_dev_s *priv, uint8_t config)
|
||||
int i;
|
||||
int ret = 0;
|
||||
|
||||
#if CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG
|
||||
if (priv == NULL)
|
||||
{
|
||||
usbtrace(TRACE_CLSERROR(USBMSC_TRACEERR_SETCONFIGINVALIDARGS), 0);
|
||||
|
||||
Reference in New Issue
Block a user