Skip to content

Commit

Permalink
It turns out that the ifdef dance is needed for options that can be d…
Browse files Browse the repository at this point in the history
…isabled due to the absence of other options
  • Loading branch information
ntamas authored and jonasdn committed Feb 25, 2022
1 parent 6956fc8 commit 55bfc54
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/src/power_distribution_stock.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ static struct {
uint16_t m4;
} motorPowerSet;

static uint32_t idleThrust = CONFIG_MOTORS_DEFAULT_IDLE_THRUST;
#ifndef CONFIG_MOTORS_DEFAULT_IDLE_THRUST
# define DEFAULT_IDLE_THRUST 0
#else
# define DEFAULT_IDLE_THRUST CONFIG_MOTORS_DEFAULT_IDLE_THRUST
#endif

static uint32_t idleThrust = DEFAULT_IDLE_THRUST;

void powerDistributionInit(void)
{
Expand Down

0 comments on commit 55bfc54

Please sign in to comment.