1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Removed DEFIO_TAG_ISEMPTY

This commit is contained in:
blckmn 2016-10-03 21:10:34 +11:00 committed by blckmn
parent d48496c988
commit c578c9d6bc

View file

@ -208,9 +208,9 @@ void motorInit(const motorConfig_t *motorConfig, uint16_t idlePulse, uint8_t mot
}
for (int motorIndex = 0; motorIndex < MAX_SUPPORTED_MOTORS && motorIndex < motorCount; motorIndex++) {
ioTag_t tag = motorConfig->ioTags[motorIndex];
const ioTag_t tag = motorConfig->ioTags[motorIndex];
if (DEFIO_TAG_ISEMPTY(tag)) {
if (!tag) {
break;
}
@ -253,9 +253,9 @@ void pwmWriteServo(uint8_t index, uint16_t value)
void servoInit(const servoConfig_t *servoConfig)
{
for (uint8_t servoIndex = 0; servoIndex < MAX_SUPPORTED_SERVOS; servoIndex++) {
ioTag_t tag = servoConfig->ioTags[servoIndex];
const ioTag_t tag = servoConfig->ioTags[servoIndex];
if (DEFIO_TAG_ISEMPTY(tag)) {
if (!tag) {
break;
}