File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ Control::Control() {
1818 _pins.push_back (new ControlPin (¯o3Event, " macro3_pin" , ' 3' ));
1919 _pins.push_back (new ControlPin (&faultPinEvent, " fault_pin" , ' F' ));
2020 _pins.push_back (new ControlPin (&faultPinEvent, " estop_pin" , ' E' ));
21+ _pins.push_back (new ControlPin (&homingButtonEvent, " homing_button_pin" , ' O' ));
2122}
2223
2324void Control::init () {
Original file line number Diff line number Diff line change @@ -392,6 +392,10 @@ static void protocol_run_startup_lines() {
392392 config->_macros ->_startup_line1 .run (&allChannels);
393393}
394394
395+ static void protocol_do_start_homing (){
396+ Machine::Homing::run_cycles (Machine::Homing::AllCycles);
397+ }
398+
395399static void protocol_do_soft_restart () {
396400 // Reset primary systems.
397401 system_reset ();
@@ -1157,6 +1161,7 @@ const NoArgEvent startEvent { protocol_do_start };
11571161const NoArgEvent restartEvent { protocol_do_soft_restart };
11581162const NoArgEvent fullResetEvent { restart };
11591163const NoArgEvent runStartupLinesEvent { protocol_run_startup_lines };
1164+ const NoArgEvent homingButtonEvent { protocol_do_start_homing };
11601165
11611166const NoArgEvent rtResetEvent { protocol_do_rt_reset };
11621167
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ extern const NoArgEvent restartEvent;
110110extern const NoArgEvent fullResetEvent;
111111
112112extern const NoArgEvent runStartupLinesEvent;
113+ extern const NoArgEvent homingButtonEvent;
113114
114115// extern const NoArgEvent statusReportEvent;
115116
You can’t perform that action at this time.
0 commit comments