Skip to content

Commit

Permalink
Fixed motorMap copy&past error
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbeanton committed Jul 3, 2024
1 parent 348174d commit 0237009
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/drivers/src/motors.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,15 +295,15 @@ void motorsInit(const MotorPerifDef** motorMapSelect)
// Start the timers
for (i = 0; i < NBR_OF_MOTORS; i++)
{
TIM_Cmd(motorMap[MOTOR_M1]->tim, ENABLE);
TIM_Cmd(motorMap[i]->tim, ENABLE);
}

isInit = true;

// Output zero power
motorsStop();

if (motorMap[0]->hasPC15ESCReset)
if (motorMap[MOTOR_M1]->hasPC15ESCReset)
{
// Release reset for all CF-BL ESC:s after motor signal is activated
GPIO_WriteBit(GPIOC, GPIO_Pin_15, Bit_SET);
Expand Down

0 comments on commit 0237009

Please sign in to comment.