mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Added resource index display.
This commit is contained in:
parent
c2db38fec9
commit
768b345166
20 changed files with 74 additions and 80 deletions
|
@ -668,7 +668,7 @@ static serialPort_t *openEscSerial(const motorDevConfig_t *motorConfig, escSeria
|
|||
}
|
||||
if (mode != PROTOCOL_KISSALL) {
|
||||
const ioTag_t tag = motorConfig->ioTags[output];
|
||||
const timerHardware_t *timerHardware = timerAllocate(tag, OWNER_MOTOR);
|
||||
const timerHardware_t *timerHardware = timerAllocate(tag, OWNER_MOTOR, 0);
|
||||
|
||||
if (timerHardware == NULL) {
|
||||
return NULL;
|
||||
|
@ -686,7 +686,7 @@ static serialPort_t *openEscSerial(const motorDevConfig_t *motorConfig, escSeria
|
|||
}
|
||||
|
||||
escSerial->mode = mode;
|
||||
escSerial->txTimerHardware = timerAllocate(escSerialConfig()->ioTag, OWNER_MOTOR);
|
||||
escSerial->txTimerHardware = timerAllocate(escSerialConfig()->ioTag, OWNER_MOTOR, 0);
|
||||
if (escSerial->txTimerHardware == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -745,7 +745,7 @@ static serialPort_t *openEscSerial(const motorDevConfig_t *motorConfig, escSeria
|
|||
if (pwmMotors[i].enabled && pwmMotors[i].io != IO_NONE) {
|
||||
const ioTag_t tag = motorConfig->ioTags[i];
|
||||
if (tag != IO_TAG_NONE) {
|
||||
const timerHardware_t *timerHardware = timerAllocate(tag, OWNER_MOTOR);
|
||||
const timerHardware_t *timerHardware = timerAllocate(tag, OWNER_MOTOR, 0);
|
||||
if (timerHardware) {
|
||||
escSerialOutputPortConfig(timerHardware);
|
||||
escOutputs[escSerial->outputCount].io = pwmMotors[i].io;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue