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

Ошибка при компиляции class Oregon_NR" has no member named "maybe_packet" #10

Open
Daduda72 opened this issue May 27, 2020 · 2 comments

Comments

@Daduda72
Copy link

Добрый день,
Не могу скомпилировать дает ошибку "class Oregon_NR" has no member named "maybe_packet".
Помогите исправить
Спасибо.

P.S. все делал по Полная пошаговая инструкция подключения Oregon THN132N к народному мониторингу. https://docs.google.com/document/u/0/d/1dR_F0D3thgga9ogkTp5bULxzanjqerj1TG_CXav0Ml0/mobilebasic

@invandy
Copy link
Owner

invandy commented Sep 25, 2020

Вы проблему-то решили? А то у меня в мае был форс-мажор, я ваше сообщение и пропустил

@tatum2010
Copy link

Привет. Есть вопрос, вдруг загляните :)

arduino ide 2.2.1
ESP8266-NodeMCU-kit

Receiver.ino из примеров не компилируется. ADD_SENS_SUPPORT обнулять пробовал...
Что бы подправить?

выдача:

e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:2178:25: warning: extra tokens at end of #ifdef directive
2178 | #ifdef ADD_SENS_SUPPORT == 1
| ^~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp: In member function 'void Oregon_NR::start()':
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:129:27: warning: 'void receiver_interruption()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
129 | attachInterrupt(INT_NO, receiver_interruption, CHANGE);
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:48:22: note: declared here
48 | void ICACHE_RAM_ATTR receiver_interruption(void) {
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:129:56: warning: 'void receiver_interruption()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
129 | attachInterrupt(INT_NO, receiver_interruption, CHANGE);
| ^
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:48:22: note: declared here
48 | void ICACHE_RAM_ATTR receiver_interruption(void) {
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp: In member function 'void Oregon_NR::capture(bool)':
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:853:29: warning: 'void receiver_interruption()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
853 | attachInterrupt(INT_NO, receiver_interruption, CHANGE);
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:48:22: note: declared here
48 | void ICACHE_RAM_ATTR receiver_interruption(void) {
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:853:58: warning: 'void receiver_interruption()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]
853 | attachInterrupt(INT_NO, receiver_interruption, CHANGE);
| ^
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:48:22: note: declared here
48 | void ICACHE_RAM_ATTR receiver_interruption(void) {
| ^~~~~~~~~~~~~~~~~~~~~
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:855:1: warning: 'or' of unmatched not-equal tests is always 1
855 | }
| ^
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp: In member function 'int Oregon_NR::get_synchro_pos(byte*, int)':
e:\Documents\Arduino\libraries\Oregon_NR\Oregon_NR.cpp:1747:1: error: control reaches end of non-void function [-Werror=return-type]
1747 | }
| ^
cc1plus.exe: some warnings being treated as errors

exit status 1

Compilation error: exit status 1

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

3 participants