1
0
Fork 0
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:
Michael Keller 2021-03-28 18:23:30 +13:00
parent 498379be48
commit d75d86b9c6

View file

@ -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)