How do I add a global variable accessible to multiple files in marlin? August 09, 2018 07:33PM |
Registered: 5 years ago Posts: 4 |
static bool endstopDisabled;to the header file then declared it in its .cpp file
bool endstopDisabled;
endstopDisabled = false;below in the same .cpp file it doesn't compile. It gives me the error "Error compiling for board Sanguino.". Anyone know what I am doing wrong? all I need is a boolean variable accessible to 2 files. Marlin_main.cpp and endstops.cpp. I am declaring variable in endstops.h.
Re: How do I add a global variable accessible to multiple files in marlin? August 09, 2018 09:32PM |
Registered: 5 years ago Posts: 4 |