mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +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:
commit
3a6b1a9ca4
1 changed files with 2 additions and 0 deletions
|
@ -599,6 +599,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);
|
||||||
|
@ -610,6 +611,7 @@ static void validateAndFixConfig(void)
|
||||||
displayPortProfileMspMutable()->displayPortSerial = SERIAL_PORT_NONE;
|
displayPortProfileMspMutable()->displayPortSerial = SERIAL_PORT_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(TARGET_VALIDATECONFIG)
|
#if defined(TARGET_VALIDATECONFIG)
|
||||||
// This should be done at the end of the validation
|
// This should be done at the end of the validation
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue