Cleaned-up limit pin reporting and comments.
- Cleaned up the limit pin state reporting option to display only the state per axis, rather than the whole port. It’s organized by an XYZ order, 0(low)-1(high), and generally looks like `Lim:001`. - Separated the control pin state reporting from limit state reporting as a new compile option. This stayed the same in terms of showing the entire port in binary, since it’s not anticipated that this will be used much, if at all. - Updated some of the gcode source comments regarding supported g-codes.
This commit is contained in:
@ -484,9 +484,16 @@ void report_realtime_status()
|
||||
printFloat_RateValue(st_get_realtime_rate());
|
||||
#endif
|
||||
|
||||
#ifdef REPORT_INPUT_PIN_STATES
|
||||
#ifdef REPORT_LIMIT_PIN_STATE
|
||||
printPgmString(PSTR(",Lim:"));
|
||||
print_uint8_base2(LIMIT_PIN & LIMIT_MASK);
|
||||
uint8_t idx;
|
||||
for (idx=0; idx<N_AXIS; idx++) {
|
||||
if (LIMIT_PIN & get_limit_pin_mask(idx)) { printString(PSTR("1")); }
|
||||
else { printString(PSTR("0")); }
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef REPORT_CONTROL_PIN_STATE
|
||||
printPgmString(PSTR(",Ctl:"));
|
||||
print_uint8_base2(CONTROL_PIN & CONTROL_MASK);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user