mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Merge pull request #10584 from knoopx/fix-dp-msp-linking
fix: linking error when USE_MSP_DISPLAYPORT is undefined
This commit is contained in:
parent
498379be48
commit
d75d86b9c6
1 changed files with 2 additions and 0 deletions
|
@ -608,6 +608,7 @@ static void validateAndFixConfig(void)
|
||||||
batteryConfigMutable()->vbatmaxcellvoltage = VBAT_CELL_VOLTAGE_DEFAULT_MAX;
|
batteryConfigMutable()->vbatmaxcellvoltage = VBAT_CELL_VOLTAGE_DEFAULT_MAX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_MSP_DISPLAYPORT
|
||||||
// validate that displayport_msp_serial is referencing a valid UART that actually has MSP enabled
|
// validate that displayport_msp_serial is referencing a valid UART that actually has MSP enabled
|
||||||
if (displayPortProfileMsp()->displayPortSerial != SERIAL_PORT_NONE) {
|
if (displayPortProfileMsp()->displayPortSerial != SERIAL_PORT_NONE) {
|
||||||
const serialPortConfig_t *portConfig = serialFindPortConfiguration(displayPortProfileMsp()->displayPortSerial);
|
const serialPortConfig_t *portConfig = serialFindPortConfiguration(displayPortProfileMsp()->displayPortSerial);
|
||||||
|
@ -619,6 +620,7 @@ static void validateAndFixConfig(void)
|
||||||
displayPortProfileMspMutable()->displayPortSerial = SERIAL_PORT_NONE;
|
displayPortProfileMspMutable()->displayPortSerial = SERIAL_PORT_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void validateAndFixGyroConfig(void)
|
void validateAndFixGyroConfig(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue