Aaahhh.... thank you - that explains why nothing happened when pushing the buttonAmedee wrote:Right
enquecommand add a GCode command in the execution queue -- so you can only add GCode.
lcd_card_stop() is not GCode, it is a call to a function.
The C language is very powerful, but it allows you to do almost anything without too much checking with very unexpected results
I have no clue about C language but try to learn but currently most of the things I do are based on trial and error... with a little help from my friends (here)
So the call should look like this instead - isnt?
ifdef STOPBUTTON
void stpbttn() {
if (!stpbttnEnqueued) {
stpbttnEnqueued = true;
lcd_card_stop();
st_synchronize();
}
}
#endif