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

Error compiling (my92xx.h: No such file or directory) #346

Closed
xoseperez opened this issue Dec 29, 2017 · 5 comments
Closed

Error compiling (my92xx.h: No such file or directory) #346

xoseperez opened this issue Dec 29, 2017 · 5 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: ferbulous (Bitbucket: ferbulous, GitHub: ferbulous)


Hi, not exactly sure what I'm missing here, I'm trying to update to the latest espurna firmware

But I keep getting this error

Arduion IDE can still compile older firmware without any issues though.

#!arduino











In file included from sketch\config/all.h:5:0,

                 from C:\Users\Keelium\Downloads\Compressed\xoseperez-espurna-080088e5acce\code\espurna\espurna.ino:22:

sketch\config/prototypes.h:88:20: fatal error: my92xx.h: No such file or directory

 #include <my92xx.h>

Any advice on how I can fix this?

@xoseperez
Copy link
Owner Author

You are building an image with the LIGHT_PROVIDER set to LIGHT_PROVIDER_MY92XX, right? This is for some light bulbs out there, like the Sonoff B1, the Arilux E27 or the AiThinker AiLight. Then you will need this library:

https://github.com/xoseperez/my92xx

@xoseperez
Copy link
Owner Author

Original comment by ferbulous (Bitbucket: ferbulous, GitHub: ferbulous):


No, I'm actually compiling for the YJZK switch. I tried uploading the firmware directly by OTA but it bricked the switch for some reason.

The LEDs are on but the switch is not responding nor accessible by wifi

Ok, I'll add that to the library.

@xoseperez
Copy link
Owner Author

OK, the problem is that LIGHT_PROVIDER_MY92XX is not defined when the prototype.h file is processed. To solve it jusy swap the lines of the prototype.h and general.h includes in the all.h file. Besides, that whole include can be removed... fixed in dev branch.

@xoseperez
Copy link
Owner Author

Released with 1.11.2

@xoseperez
Copy link
Owner Author

Removing milestone: 1.11.2 (automated comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant