synthetos / g2

g2core - The Next Generation
Other
622 stars 296 forks source link

Arduino Due with Edge-preview+gShield not working ///'laser_tool' was not declared in this scope/// #504

Closed martonpetroczki closed 2 years ago

martonpetroczki commented 2 years ago

I tried to upload the new version but it didn't work. I use an arduino due board with my own shield and the old version worked fine. This error message appears: 1

I don't understand why the laser is mixed in and what is this? "#warning SPINDLE_ENABLE_OUTPUT_NUMBER is defaulted to 4!"

I found this, but gShield doesn't use it. 2

(sorry, my English is bad)

justinclift commented 2 years ago

the old version worked fine.

When you say "the old version", are you meaning an older board, or an older file for uploading, or something else? :smile:

My guess is that you've copied one of the existing settings files (here) to cheapo_laser.h, and the new one isn't working but the old one is?

sorry, my English is bad

So far, it's easily good enough. :smile:

martonpetroczki commented 2 years ago

I didn't say it exactly. So the old version is the /master/. I completely deleted the old g2 master folder and I downloaded the edge-preview. What am I doing wrong? :(

nickbooties commented 2 years ago

Yeah, looks like https://github.com/synthetos/g2/commit/423c83f233f1ff414521b9f66170e530d95ad14c broke a bunch of stuff for Due/gShield users. I reverted that and it compiled no problems.

martonpetroczki commented 2 years ago

Thanks for your help, it solved the problem.