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

wifimanager.cpp / wifimanager.h #803

Merged
merged 1 commit into from
Feb 14, 2019

Conversation

sidey79
Copy link
Contributor

@sidey79 sidey79 commented Jan 8, 2019

I figured out, that there is no check on the hardware plattform, which is currently selected.
There are serval plattforms, which does not compile, i suggest adding a if defined check to the preprocessor.

Why is this useful?

I've a multi plattform Project. I used two seprerate source code projects in the past, but now i want to merge them. When i try to compile my project with an AVR Board, it fails, because it trys to compile the wifi lib but doesn't find serval used libs.

-added define that checks on esp32 or esp8266. If another hardware is selectec, then do not try to compile this code.

added define that checks on esp32 or esp8266. If another hardware is selectec, then do not try to compile this code.
@tablatronix tablatronix added enhancement Feature Request Branch This applies to a branch labels Jan 8, 2019
@tablatronix
Copy link
Collaborator

Do you thing we should include a #warning also just so it doesnt compile blind, I mean it is an esp exclusive library

@sidey79
Copy link
Contributor Author

sidey79 commented Jan 9, 2019

Yea, it's an ESP lib, but my compiler isn't aware of what is an ESP lib, it will try to compile .h and .cpp files which are available. The reason is, i use project specific libs and not global arduino libs.

The warning may be an option, but users must enable verbose mode to see those warnings, so this will most people not help.

I think the travis check isn't caused by me.

@sidey79
Copy link
Contributor Author

sidey79 commented Feb 13, 2019

What can i do to get this integrated?

@tablatronix
Copy link
Collaborator

I will do it later

@tablatronix
Copy link
Collaborator

Ugh Ill merge tomorrow, it wont let me since travis is failing atm.

@tablatronix tablatronix merged commit 8f6950d into tzapu:development Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Branch This applies to a branch enhancement Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants