Fixed $G report issue with M7 and M8 both enabled.
[fix] When M7 and M8 are both enabled, $G report would show `M78`, rather than `M7 M8`. This only effects systems that enable M7 mist coolant in config.h. Not the default build.
This commit is contained in:
parent
fd2a4ebaee
commit
849122559b
3 changed files with 14 additions and 5 deletions
|
|
@ -1,3 +1,12 @@
|
||||||
|
----------------
|
||||||
|
Date: 2017-02-27
|
||||||
|
Author: Sonny Jeon
|
||||||
|
Subject: Fixed shared build info code.
|
||||||
|
|
||||||
|
- The build info options of “two switches on an axis” and “homing init
|
||||||
|
lock” shared the same letter ‘L’. The former is now ’T’.
|
||||||
|
|
||||||
|
|
||||||
----------------
|
----------------
|
||||||
Date: 2017-02-23
|
Date: 2017-02-23
|
||||||
Author: Sonny Jeon
|
Author: Sonny Jeon
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
// Grbl versioning system
|
// Grbl versioning system
|
||||||
#define GRBL_VERSION "1.1f"
|
#define GRBL_VERSION "1.1f"
|
||||||
#define GRBL_VERSION_BUILD "20170227"
|
#define GRBL_VERSION_BUILD "20170302"
|
||||||
|
|
||||||
// Define standard libraries used by Grbl.
|
// Define standard libraries used by Grbl.
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
|
|
|
||||||
|
|
@ -316,13 +316,13 @@ void report_gcode_modes()
|
||||||
case SPINDLE_DISABLE : serial_write('5'); break;
|
case SPINDLE_DISABLE : serial_write('5'); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
report_util_gcode_modes_M();
|
|
||||||
#ifdef ENABLE_M7
|
#ifdef ENABLE_M7
|
||||||
if (gc_state.modal.coolant) { // Note: Multiple coolant states may be active at the same time.
|
if (gc_state.modal.coolant) { // Note: Multiple coolant states may be active at the same time.
|
||||||
if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_MIST) { serial_write('7'); }
|
if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_MIST) { report_util_gcode_modes_M(); serial_write('7'); }
|
||||||
if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_FLOOD) { serial_write('8'); }
|
if (gc_state.modal.coolant & PL_COND_FLAG_COOLANT_FLOOD) { report_util_gcode_modes_M(); serial_write('8'); }
|
||||||
} else { serial_write('9'); }
|
} else { report_util_gcode_modes_M(); serial_write('9'); }
|
||||||
#else
|
#else
|
||||||
|
report_util_gcode_modes_M();
|
||||||
if (gc_state.modal.coolant) { serial_write('8'); }
|
if (gc_state.modal.coolant) { serial_write('8'); }
|
||||||
else { serial_write('9'); }
|
else { serial_write('9'); }
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue