|
@@ -367,7 +367,7 @@ static void print_es_state(const bool is_hit, const char * const label=NULL) {
|
367
|
367
|
|
368
|
368
|
void _O2 Endstops::M119() {
|
369
|
369
|
SERIAL_PROTOCOLLNPGM(MSG_M119_REPORT);
|
370
|
|
- #define ES_REPORT(S) print_es_state(READ(S##_PIN) == S##_ENDSTOP_INVERTING, PSTR(MSG_##S))
|
|
370
|
+ #define ES_REPORT(S) print_es_state(READ(S##_PIN) != S##_ENDSTOP_INVERTING, PSTR(MSG_##S))
|
371
|
371
|
#if HAS_X_MIN
|
372
|
372
|
ES_REPORT(X_MIN);
|
373
|
373
|
#endif
|
|
@@ -411,12 +411,12 @@ void _O2 Endstops::M119() {
|
411
|
411
|
ES_REPORT(Z3_MAX);
|
412
|
412
|
#endif
|
413
|
413
|
#if ENABLED(Z_MIN_PROBE_ENDSTOP)
|
414
|
|
- print_es_state(READ(Z_MIN_PROBE_PIN) == Z_MIN_PROBE_ENDSTOP_INVERTING, PSTR(MSG_Z_PROBE));
|
|
414
|
+ print_es_state(READ(Z_MIN_PROBE_PIN) != Z_MIN_PROBE_ENDSTOP_INVERTING, PSTR(MSG_Z_PROBE));
|
415
|
415
|
#endif
|
416
|
416
|
#if ENABLED(FILAMENT_RUNOUT_SENSOR)
|
417
|
417
|
#define FRS_COUNT (1 + PIN_EXISTS(FIL_RUNOUT2) + PIN_EXISTS(FIL_RUNOUT3) + PIN_EXISTS(FIL_RUNOUT4) + PIN_EXISTS(FIL_RUNOUT5) + PIN_EXISTS(FIL_RUNOUT6))
|
418
|
418
|
#if FRS_COUNT == 1
|
419
|
|
- print_es_state(READ(FIL_RUNOUT_PIN) == FIL_RUNOUT_INVERTING, MSG_FILAMENT_RUNOUT_SENSOR);
|
|
419
|
+ print_es_state(READ(FIL_RUNOUT_PIN) != FIL_RUNOUT_INVERTING, MSG_FILAMENT_RUNOUT_SENSOR);
|
420
|
420
|
#else
|
421
|
421
|
for (uint8_t i = 1; i <=
|
422
|
422
|
#if FRS_COUNT == 6
|
|
@@ -454,7 +454,7 @@ void _O2 Endstops::M119() {
|
454
|
454
|
}
|
455
|
455
|
SERIAL_PROTOCOLPGM(MSG_FILAMENT_RUNOUT_SENSOR);
|
456
|
456
|
if (i > 1) { SERIAL_CHAR(' '); SERIAL_CHAR('0' + i); }
|
457
|
|
- print_es_state(digitalRead(pin) == FIL_RUNOUT_INVERTING);
|
|
457
|
+ print_es_state(digitalRead(pin) != FIL_RUNOUT_INVERTING);
|
458
|
458
|
}
|
459
|
459
|
#endif
|
460
|
460
|
#endif
|