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

compilation with (for) MECHADUINO_HARDWARE is broken after hash 684f9ac4 #2

Closed
swk opened this issue Dec 20, 2016 · 2 comments
Closed

Comments

@swk
Copy link
Contributor

swk commented Dec 20, 2016

compiling 684f9ac for mechaduino works quite well with Arduino 1.6.13 IDE, Later commits fail. (I have not tracked down the specific commit yet.

Only mod to the code is to uncomment the define for MECHADUINO_HARDWARE

Error message
In file included from sketch/nzs.h:11:0,
from sketch/nzs.cpp:8:
sketch/board.h:83:2: warning: #warning "Compiling source for Mechaduino NOT NZS" [-Wcpp]
#warning "Compiling source for Mechaduino NOT NZS"
^
sketch/nzs.cpp: In function 'int menuTestCal(int, char**)':
nzs.cpp:39: error: 'PIN_SW3' was not declared in this scope
while(digitalRead(PIN_SW3)==1)
^
nzs.cpp:43: error: 'PIN_SW3' was not declared in this scope
while(digitalRead(PIN_SW3)==0)
^
sketch/nzs.cpp: At global scope:
sketch/nzs.cpp:534:9: warning: #pragma GCC target is not supported for this machine [-Wpragmas]
#pragma GCC pop_options
^
exit status 1
'PIN_SW3' was not declared in this scope

@swk
Copy link
Contributor Author

swk commented Dec 20, 2016

Tracked this down to commit 9639027 (the most recent commit probably a missed ifdef heh)

@Misfittech
Copy link
Owner

Thanks I have merged your changes into the code.

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

2 participants