mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Merge pull request #1465 from blckmn/led_fix
Fixes reset LED issue (bad define)
This commit is contained in:
commit
578bf914f6
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue