Fix compilation errors
This commit is contained in:
parent
f4ec265363
commit
00456b0cb3
|
@ -4690,7 +4690,7 @@ inline void gcode_M42() {
|
|||
pin_state[pin - first_pin] = digitalRead(pin);
|
||||
}
|
||||
|
||||
#if ENABLED(EMERGENCY_PARSER)
|
||||
#if ENABLED(EMERGENCY_PARSER) && DISABLED(ULTIPANEL)
|
||||
wait_for_user = true;
|
||||
#endif
|
||||
|
||||
|
@ -4708,7 +4708,7 @@ inline void gcode_M42() {
|
|||
}
|
||||
}
|
||||
|
||||
#if ENABLED(EMERGENCY_PARSER)
|
||||
#if ENABLED(EMERGENCY_PARSER) && DISABLED(ULTIPANEL)
|
||||
if (!wait_for_user) break;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#define _PIN_SAY(NAME) { SERIAL_ECHOPGM(STRINGIFY(NAME)); return true; }
|
||||
#define PIN_SAY(NAME) if (pin == NAME) _PIN_SAY(_##NAME##_);
|
||||
#define ANALOG_PIN_SAY(NAME) if (pin == analogInputToDigitalPin(NAME)) _PIN_SAY(_##NAME##_);
|
||||
#define IS_ANALOG(P) if ((P) >= analogInputToDigitalPin(0) && ((P) <= analogInputToDigitalPin(15) || (P) <= analogInputToDigitalPin(5)))
|
||||
#define IS_ANALOG(P) ((P) >= analogInputToDigitalPin(0) && ((P) <= analogInputToDigitalPin(15) || (P) <= analogInputToDigitalPin(5)))
|
||||
|
||||
// Report pin name for a given fastio digital pin index
|
||||
static bool report_pin_name(int8_t pin) {
|
||||
|
|
Loading…
Reference in a new issue