Implement NO_MOTION_BEFORE_HOMING option

This commit is contained in:
Scott Lahteine committed 2017-10-01 21:58:50 -05:00
1 parent 965b0ab53e
commit 90af1fe5ee
8 files changed
+35 -19

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@
* G42: Move X & Y axes to mesh coordinates (I & J)
*/
void GcodeSuite::G42() {
if (IsRunning()) {
if (MOTION_CONDITIONS) {
const bool hasI = parser.seenval('I');
const int8_t ix = hasI ? parser.value_int() : 0;
const bool hasJ = parser.seenval('J');