Skip to content
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

[target] EMAX_F405_ELRS_AIO fix SERIALRX_PROVIDER define #537

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Aug 22, 2024

  • defining SERIALRX_PROVIDER as CRSF rather than SERIALRX_CRSF breaks compiling (Thanks @haslinghuis !)
  • fixes:
In file included from ./src/main/pg/rx.c:29:
./src/main/pg/rx.c: In function 'pgResetFn_rxConfig':
./src/config/configs/EMAX_F405_ELRS_AIO/config.h:82:27: error: 'CRSF' undeclared (first use in this function)
   82 | #define SERIALRX_PROVIDER CRSF
      |                           ^~~~
./src/main/config/config_reset.h:41:9: note: in definition of macro 'RESET_CONFIG_2'
   41 |         __VA_ARGS__                                       \
      |         ^~~~~~~~~~~
./src/main/pg/rx.c:84:30: note: in expansion of macro 'SERIALRX_PROVIDER'
   84 |         .serialrx_provider = SERIALRX_PROVIDER,
      |                              ^~~~~~~~~~~~~~~~~
./src/config/configs/EMAX_F405_ELRS_AIO/config.h:82:27: note: each undeclared identifier is reported only once for each function it appears in
   82 | #define SERIALRX_PROVIDER CRSF
      |                           ^~~~
./src/main/config/config_reset.h:41:9: note: in definition of macro 'RESET_CONFIG_2'
   41 |         __VA_ARGS__                                       \
      |         ^~~~~~~~~~~
./src/main/pg/rx.c:84:30: note: in expansion of macro 'SERIALRX_PROVIDER'
   84 |         .serialrx_provider = SERIALRX_PROVIDER,
      |                              ^~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:454: obj/main/STM32F405_EMAX_F405_ELRS_AIO/pg/rx.o] Error 1
make[2]: *** Waiting for unfinished jobs....
%% (optimised) ./src/main/common/explog_approx.c 
%% (speed optimised) ./src/main/common/filter.c 
make[2]: Leaving directory '/source'
make[1]: *** [Makefile:574: hex] Error 2
make[1]: Leaving directory '/source'
make: *** [mk/config.mk:62: EMAX_F405_ELRS_AIO] Error 2
make failed with 2

@nerdCopter

This comment was marked as outdated.

@haslinghuis haslinghuis changed the title [target] EMAX_F405_ELRS_AIO remove SERIALRX_PROVIDER define [target] EMAX_F405_ELRS_AIO fix SERIALRX_PROVIDER define Aug 22, 2024
@haslinghuis haslinghuis merged commit c49cbbf into betaflight:master Aug 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants