mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +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;
|
||||
}
|
||||
|
||||
#ifdef USE_MSP_DISPLAYPORT
|
||||
// validate that displayport_msp_serial is referencing a valid UART that actually has MSP enabled
|
||||
if (displayPortProfileMsp()->displayPortSerial != SERIAL_PORT_NONE) {
|
||||
const serialPortConfig_t *portConfig = serialFindPortConfiguration(displayPortProfileMsp()->displayPortSerial);
|
||||
|
@ -619,6 +620,7 @@ static void validateAndFixConfig(void)
|
|||
displayPortProfileMspMutable()->displayPortSerial = SERIAL_PORT_NONE;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void validateAndFixGyroConfig(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue