iNavFlight / inav

INAV: Navigation-enabled flight control software
https://inavflight.github.io
GNU General Public License v3.0
3.12k stars 1.47k forks source link

INAV - No OSD Needed - Compile Error #7902

Closed Digital256 closed 1 year ago

Digital256 commented 2 years ago

I have a project where I don't need OSD. When I disable all the OSD references in the target files I get an error compiling the code.

Compile error appears in src/main/rx/rx.c undefined reference to 'osdConfig_System'

The src/main/rx/rx.c code includes this.

include "rx/crsf.h"

The src/main/rx/crssf.c code includes this.

include "io/osd.h"

Also src/main/rx/crssf.c has code using OSD for calculations.

Recommended Solution:

ifdef USE_OSD

I'm using the latest code from GitHub.

Compile Error

DzikuVx commented 2 years ago

@Digital256 you are welcome to propose a pull request that fixes that. It's an open-source and seems like you know what you are doing :)

Digital256 commented 2 years ago

Will do.