-
-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: failing DEBUG simulator build for radios without customisable switches #5086
Conversation
Does diagcustswitches perhaps need the same treatment in 2.10 that was done here? |
Not sure how that would work - there is no FUNCTION_SWITCHES option defined for CMake. It is only set as a compiler option (-DFUNCTION_SWITCHES). |
CMake It's the last commit of #5025, and prevents the two files being blindly/forcibly compiled even when not in use. Footnotes |
T15 will not build with this change unless -DFUNCTION_SWITCHES=YES is added to the CMAKE configuration options. |
Yeah, OK, something isn't working properly there... maybe it does need the option set to work properly, meaning #5025 needs more work also as it will fail once the T15 is added. This doesn't actually fix the debug build for radio without function switches though, does it?
|
The missing 'dbgSerialPrintf' function on B&W radios is a different issues. Update: including serial.cpp makes the B&W bootloader too big, so more complex fix needed. |
So since PL18, TX16 and T15 all work here with DEBUG=Y, with 2.10 unchanged, is this only fixing the warnings, not an actual build failure? |
Firmware builds for me; but simulator does not. Possibly compiler version issue. |
Ok, gotcha... thanks for the clarification. And yes, possibly, as TX16S /w DEBUG=Y was able to build both |
Also removed unused code from radio_diagcustswitches.cpp.