diff --git a/src/main/drivers/io_types.h b/src/main/drivers/io_types.h index 78a3158e34..ccd7e0a960 100644 --- a/src/main/drivers/io_types.h +++ b/src/main/drivers/io_types.h @@ -8,7 +8,7 @@ typedef uint8_t ioTag_t; // packet tag to specify IO pin typedef void* IO_t; // type specifying IO pin. Currently ioRec_t pointer, but this may change // NONE initializer for ioTag_t variables -#define IO_TAG_NONE ((ioTag_t)0) +#define IO_TAG_NONE IO_TAG(NONE) // NONE initializer for IO_t variable #define IO_NONE ((IO_t)0) diff --git a/src/main/fc/config.c b/src/main/fc/config.c index 296df6570a..5077d876f8 100755 --- a/src/main/fc/config.c +++ b/src/main/fc/config.c @@ -239,7 +239,7 @@ void resetSensorAlignment(sensorAlignmentConfig_t *sensorAlignmentConfig) sensorAlignmentConfig->mag_align = ALIGN_DEFAULT; } -#ifdef USE_LEDSTRIP +#ifdef LED_STRIP void resetLedStripConfig(ledStripConfig_t *ledStripConfig) { applyDefaultColors(ledStripConfig->colors); @@ -618,7 +618,7 @@ void createDefaultConfig(master_t *config) #endif resetFlight3DConfig(&config->flight3DConfig); -#ifdef USE_LEDSTRIP +#ifdef LED_STRIP resetLedStripConfig(&config->ledStripConfig); #endif