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

warning: 'deprecated' attribute directive ignored #133

Open
ilya7zz opened this issue Nov 22, 2024 · 1 comment
Open

warning: 'deprecated' attribute directive ignored #133

ilya7zz opened this issue Nov 22, 2024 · 1 comment

Comments

@ilya7zz
Copy link

ilya7zz commented Nov 22, 2024

When using ESP8266, the compiler complains:

~/Documents/Arduino/libraries/PZEM-004T-v30-1.2.1/src/PZEM004Tv30.h:71:88: warning: 'deprecated' attribute directive ignored [-Wattributes]
     PZEM004Tv30(uint8_t receivePin, uint8_t transmitPin, uint8_t addr=PZEM_DEFAULT_ADDR);
                                                                                        ^
~/Documents/Arduino/libraries/PZEM-004T-v30-1.2.1/src/PZEM004Tv30.h:92:69: warning: 'deprecated' attribute directive ignored [-Wattributes]
     PZEM004Tv30(HardwareSerial* port, uint8_t addr=PZEM_DEFAULT_ADDR) : PZEM004Tv30(*port, addr) {};
                                                                     ^
In file included from ~/Documents/Arduino/libraries/PZEM-004T-v30-1.2.1/src/PZEM004Tv30.cpp:23:0:
~/Documents/Arduino/libraries/PZEM-004T-v30-1.2.1/src/PZEM004Tv30.h:71:88: warning: 'deprecated' attribute directive ignored [-Wattributes]
     PZEM004Tv30(uint8_t receivePin, uint8_t transmitPin, uint8_t addr=PZEM_DEFAULT_ADDR);
                                                                                        ^
~/Documents/Arduino/libraries/PZEM-004T-v30-1.2.1/src/PZEM004Tv30.h:92:69: warning: 'deprecated' attribute directive ignored [-Wattributes]
     PZEM004Tv30(HardwareSerial* port, uint8_t addr=PZEM_DEFAULT_ADDR) : PZEM004Tv30(*port, addr) {};
                                                                     ^

The code works, measurements are taken.
Is it possible to somehow fix this so that errors do not interfere with analyzing the work and do not cause confusion?

PS: I used "ModbusMaster.h" library before until I suddenly saw an overflow error due to the limitation of the uint16_t 65535 data type, which counted up to 6553.5 W (65.535 kWh) and started from zero :)
❤️ Your library is a lifesaver for me, thank you!

@ilya7zz
Copy link
Author

ilya7zz commented Nov 30, 2024

Please help me fix these errors. 🙏
I am ready to help with testing if necessary!

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

1 participant