Skip to content

Commit 93ce175

Browse files
authored
Merge pull request #1418 from bitcraze/toverumar/update_bl_test_deck
Update test deck for crazyflie brushless
2 parents 2cbf933 + 0618f1a commit 93ce175

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/deck/drivers/src/test/exptestCfBl.c

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ static EtGpio etGpioIn[ET_NBR_PINS] = {
9999
{ET_GPIO_PORT_IO4, ET_GPIO_PIN_IO4, "IO4"}
100100
};
101101

102-
static EtGpio etGpioSDA = {ET_GPIO_PORT_SDA, ET_GPIO_PIN_SDA, "SDA"};
103-
static EtGpio etGpioSCL = {ET_GPIO_PORT_SCL, ET_GPIO_PIN_SCL, "SCL"};
104102

105103
static bool isInit;
106104
const DeckDriver *bcRpm = NULL;
@@ -255,23 +253,8 @@ static bool expCfBlTestRun(void)
255253
bcRpm->init(NULL);
256254
}
257255

258-
rpmTestRun();
256+
status = rpmTestRun();
259257
}
260-
261-
if (status) {
262-
// Configure SDA & SCL to turn on OK leds
263-
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_OUT;
264-
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
265-
GPIO_InitStructure.GPIO_Speed = GPIO_Low_Speed;
266-
GPIO_InitStructure.GPIO_Pin = etGpioSDA.pin;
267-
GPIO_Init(etGpioSDA.port, &GPIO_InitStructure);
268-
GPIO_InitStructure.GPIO_Pin = etGpioSCL.pin;
269-
GPIO_Init(etGpioSCL.port, &GPIO_InitStructure);
270-
// Turn on OK LEDs.
271-
GPIO_ResetBits(etGpioSDA.port, etGpioSDA.pin);
272-
GPIO_ResetBits(etGpioSCL.port, etGpioSCL.pin);
273-
}
274-
275258
return status;
276259
}
277260

0 commit comments

Comments
 (0)