-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
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
Can't compile for Melzi #1243
Comments
Hmm, even more errors when compiling for GEN6 or GEN6 deluxe... (The makerspace uses GEN6 in some printers) |
OK. In Marlin.h there is a section: #if (ARDUINO >= 100) This is where analogInputToDigitalPin is declared. |
@Lukelectro could you test #1291 ? |
I would like to, but I'm still new to github. So, here is what I think I should do, please CMIIW:
Step 1 is the problem. If I just copy-paste https://github.com/alhirzel/Marlin/blob/Development/Marlin/Marlin.h to replace my own, I get all sorts of unrelated errors because I just replaced a single file and all sorts of references go wrong. (I should instead clone the entire project, then pull all files you changed, I think) However, if I just add #ifndef analogInputToDigitalPin to the "old" marlin.h (the one I had), and remove my own workaround, it compiles fine. |
you can see what changes was made here if it helps you https://github.com/ErikZalm/Marlin/pull/1291/files |
Thats where I got the file from. But I think it would help me more if I read https://help.github.com/categories/bootcamp/ . ;) |
@Lukelectro Try this... from a git client installed on your machine:
Then the code in your directory should be exactly as it would be if pull req 1291 is merged into the Development branch. |
Thanks for your help. The code in my directory is indeed the same (it has the #ifndef analogInputToDigitalPin bit added) And, as expected, it compiles. I have not changed all the settings to suit my printer yet, so I have not done other tests. Yet. |
Glad this fixed the issue for you. =] |
Yes. Closing. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sory to make a new issue instead of fixing one, but I get:
Marlin_main.cpp:360: error: ‘analogInputToDigitalPin’ was not declared in this scope
Marlin_main.cpp:360: error: ‘analogInputToDigitalPin’ was not declared in this scope
Marlin_main.cpp:360: error: ‘analogInputToDigitalPin’ was not declared in this scope
Marlin_main.cpp:360: error: ‘analogInputToDigitalPin’ was not declared in this scope
When I try to compile the current devellopment branch for Melzi
(Add
define MOTHERBOARD BOARD_MELZI
above
ifndef MOTHERBOARD
#define MOTHERBOARD BOARD_ULTIMAKER
endif
)
The analogInputToDigitalPin is part of the Sensitive_pins declaration in pins.h, its in there 4 times hence 4 errors.
When compiling for the ultiboard it compiles fine so I guess it is somewhere in the part of pins.h applicable to melzi.
I´ll keep looking into this.
The text was updated successfully, but these errors were encountered: