mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
Combined ifdess and made positive logic
We still allow CONFIG_ARCH_BOARD_SITL in the code base, but use positive logic and less #ifdefs
This commit is contained in:
committed by
Lorenz Meier
parent
0bb0e92378
commit
93bc8f6467
@@ -91,17 +91,14 @@ static bool should_prearm = false;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_ARCH_BOARD_SITL)
|
||||
#define MIXER_PATH(_file) "/etc/mixers/"#_file
|
||||
#if defined(CONFIG_ARCH_BOARD_SITL)
|
||||
#define MIXER_PATH(_file) "ROMFS/px4fmu_test/mixers/"#_file
|
||||
#define MIXER_ONBOARD_PATH "ROMFS/px4fmu_common/mixers"
|
||||
#else
|
||||
#define MIXER_PATH(_file) "ROMFS/px4fmu_test/mixers/"#_file
|
||||
#define MIXER_ONBOARD_PATH "/etc/mixers"
|
||||
#define MIXER_PATH(_file) MIXER_ONBOARD_PATH"/"#_file
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_ARCH_BOARD_SITL)
|
||||
#define MIXER_ONBOARD_PATH "/etc/mixers"
|
||||
#else
|
||||
#define MIXER_ONBOARD_PATH "ROMFS/px4fmu_common/mixers"
|
||||
#endif
|
||||
|
||||
#define MIXER_VERBOSE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user