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

LMIC_DEBUG_PRINTF is handy, but it needs to include a declaration #39

Closed
frankleonrose opened this issue Dec 7, 2017 · 1 comment
Closed

Comments

@frankleonrose
Copy link

If you actually define -DLMIC_DEBUG_PRINTF MyLmicDebugPrintf you get warnings in compilation because it isn't declared in the LMiC modules.

I recommend adding a declaration immediately after #define

     #define LMIC_DEBUG_PRINTF(f, ...) LMIC_DEBUG_PRINTF_FN(f, ## __VA_ARGS__)
     extern void LMIC_DEBUG_PRINTF(const char *fmt, ...);
@terrillmoore
Copy link
Member

Fixed by 42dfb39

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

No branches or pull requests

2 participants