Skip to content

Conflicting interruptlock between core and dht library #6223

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

Closed
supersjimmie opened this issue Jun 24, 2019 · 4 comments
Closed

Conflicting interruptlock between core and dht library #6223

supersjimmie opened this issue Jun 24, 2019 · 4 comments
Assignees
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.

Comments

@supersjimmie
Copy link

I installed a fresh Arduino IDE, and added the latest esp8266 core library from git.
Then I added the DHT library, which seems to have a conflict with the core?

In file included from C:\Users\me\Documents\Arduino\IoT\IoT.ino:182:0:

C:\Users\me\Documents\arduino-1.8.9\libraries\DHT-sensor-library/DHT.h:67:7: error: redefinition of 'class InterruptLock'

 class InterruptLock {

       ^

In file included from C:\Users\me\Documents\arduino-1.8.9\hardware\esp8266com\esp8266\libraries\SoftwareSerial\src/circular_queue/circular_queue.h:28:0,

                 from C:\Users\me\Documents\arduino-1.8.9\hardware\esp8266com\esp8266\libraries\SoftwareSerial\src/SoftwareSerial.h:27,

                 from C:\Users\me\Documents\Arduino\IoT\IoT.ino:157:

C:\Users\me\Documents\arduino-1.8.9\hardware\esp8266com\esp8266\cores\esp8266/interrupts.h:19:7: error: previous definition of 'class InterruptLock'

 class InterruptLock {

       ^

@d-a-v
Copy link
Collaborator

d-a-v commented Jun 24, 2019

Our class name exists for long time but is only recently used
@dok-net (SoftwareSerial) will comment

I think we can rename this generic name in our core
depending on what other maintainers think of it.

In the meantime, you can manually/locally rename InterruptLock in DHT.h.
If it's an esp8266 specific library, you can also tell the author to check if he could use the core version of this class.

@dok-net
Copy link
Contributor

dok-net commented Jun 24, 2019

@d-a-v @supersjimmie There's a PR in Adafruit's repo now: adafruit/DHT-sensor-library#135

@dok-net
Copy link
Contributor

dok-net commented Jun 26, 2019

@supersjimmie Are you getting a working combination by default download methods already now? The closing integration of public release 5.2.2 via ESP8266 Arduino submodule libraries/SoftwareSerial is still awaiting, and without trying it all by myself, I expect the name conflict to linger until then?

@devyte devyte self-assigned this Nov 9, 2019
@devyte devyte added the waiting for feedback Waiting on additional info. If it's not received, the issue may be closed. label Nov 9, 2019
@devyte
Copy link
Collaborator

devyte commented Feb 2, 2020

Closing because #6225 is merged.

@devyte devyte closed this as completed Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for feedback Waiting on additional info. If it's not received, the issue may be closed.
Projects
None yet
Development

No branches or pull requests

4 participants