betaflight / betaflight

Open Source Flight Controller Firmware
GNU General Public License v3.0
8k stars 2.86k forks source link

only apply osd defines if not set #13612

Open freasy opened 2 weeks ago

freasy commented 2 weeks ago

This enables the user to make a local build and select osd_displayport_device and vcd_system_type via OSD_SD and OSD_HD defines in cli. Prior to this, you can not select which are preselected via EXTRA_FLAGS as it would be a redefine.

github-actions[bot] commented 2 weeks ago

Do you want to test this code? You can flash it directly from Betaflight Configurator:

WARNING: It may be unstable. Use only for testing!

nerdCopter commented 2 weeks ago

should they be separated rather than &&? i don't know for sure, just asking.

freasy commented 2 weeks ago

should they be separated rather than &&? i don't know for sure, just asking.

No you only want defines if neither is set before