Custom Key @autostart_next_job
I would like to add a custom key to tell Repetier-Server to @autostart_next_job.
I have looked at http://forum.repetier.com/discussion/1534 but that only works for gcode.
I have looked at http://forum.repetier.com/discussion/1534 but that only works for gcode.
Comments
be able to push a key from my printer to start next print in job queue. Any idea on how I should go about it?
I am aware that you can simply push a button from the remote computer running Repetier-Server to start next print job, but a simple custom key on my printer would make thing much easier in my situation.
I have tried to add a custom key to ui.ccp, then added a line to define it in ui.h, and assigned it to pin 57 in uiconfig.h as follow but that would not work since it is not a gcode as you said.
//ui.ccp
case UI_ACTION_CUSTOM_KEY:
GCode::executeFString(PSTR("@autostart_next_job"));
break;
//ui.h
#define UI_ACTION_CUSTOM_KEY 1999
//uiconfig.h
void uiInitKeys() {
UI_KEYS_INIT_BUTTON_LOW(57);
}
void uiCheckKeys(uint16_t &action) {
UI_KEYS_BUTTON_LOW(57,UI_ACTION_CUSTOM_KEY);
}