mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +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:
@@ -81,7 +81,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if CONFIG_FB_CMAP
|
||||
#ifdef CONFIG_FB_CMAP
|
||||
int nxbe_colormap(FAR NX_DRIVERTYPE *dev)
|
||||
{
|
||||
struct fb_cmap_s cmap;
|
||||
|
||||
@@ -192,7 +192,7 @@ static inline int nxmu_setup(FAR const char *mqname, FAR NX_DRIVERTYPE *dev,
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
#if CONFIG_FB_CMAP
|
||||
#ifdef CONFIG_FB_CMAP
|
||||
ret = nxbe_colormap(dev);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
@@ -125,7 +125,7 @@ static inline int nxsu_setup(FAR NX_DRIVERTYPE *dev,
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
#if CONFIG_FB_CMAP
|
||||
#ifdef CONFIG_FB_CMAP
|
||||
ret = nxbe_colormap(dev);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user