1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Added 'timer show' command to CLI.

This commit is contained in:
mikeller 2019-08-05 19:39:26 +12:00
parent 025ff572b6
commit 6a0c5836de
16 changed files with 217 additions and 125 deletions

View file

@ -213,7 +213,7 @@ motorDevice_t *motorPwmDevInit(const motorDevConfig_t *motorConfig, uint16_t idl
for (int motorIndex = 0; motorIndex < MAX_SUPPORTED_MOTORS && motorIndex < motorCount; motorIndex++) {
const ioTag_t tag = motorConfig->ioTags[motorIndex];
const timerHardware_t *timerHardware = timerGetByTag(tag);
const timerHardware_t *timerHardware = timerAllocate(tag, OWNER_MOTOR);
if (timerHardware == NULL) {
/* not enough motors initialised for the mixer or a break in the motors */
@ -294,7 +294,7 @@ void servoDevInit(const servoDevConfig_t *servoConfig)
IOInit(servos[servoIndex].io, OWNER_SERVO, RESOURCE_INDEX(servoIndex));
const timerHardware_t *timer = timerGetByTag(tag);
const timerHardware_t *timer = timerAllocate(tag, OWNER_SERVO);
if (timer == NULL) {
/* flag failure and disable ability to arm */