mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-31 14:12:52 +00:00
🩹 Ensure pin_is_protected is defined (#25829)
This commit is contained in:
parent
46e8b9cad9
commit
99e38c40be
3 changed files with 5 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
#if ENABLED(PINS_DEBUGGING)
|
#if ENABLED(PINS_DEBUGGING)
|
||||||
|
|
||||||
#include "../gcode.h"
|
#include "../gcode.h"
|
||||||
#include "../../MarlinCore.h" // for pin_is_protected
|
#include "../../MarlinCore.h" // for pin_is_protected, wait_for_user
|
||||||
#include "../../pins/pinsDebug.h"
|
#include "../../pins/pinsDebug.h"
|
||||||
#include "../../module/endstops.h"
|
#include "../../module/endstops.h"
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#if ENABLED(DIRECT_PIN_CONTROL)
|
#if ENABLED(DIRECT_PIN_CONTROL)
|
||||||
|
|
||||||
#include "../gcode.h"
|
#include "../gcode.h"
|
||||||
#include "../../MarlinCore.h" // for pin_is_protected
|
|
||||||
|
|
||||||
#if HAS_FAN
|
#if HAS_FAN
|
||||||
#include "../../module/temperature.h"
|
#include "../../module/temperature.h"
|
||||||
|
@ -38,6 +37,8 @@
|
||||||
#define OUTPUT_OPEN_DRAIN OUTPUT_OPEN_DRAIN
|
#define OUTPUT_OPEN_DRAIN OUTPUT_OPEN_DRAIN
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool pin_is_protected(const pin_t pin);
|
||||||
|
|
||||||
void protected_pin_err() {
|
void protected_pin_err() {
|
||||||
SERIAL_ERROR_MSG(STR_ERR_PROTECTED_PIN);
|
SERIAL_ERROR_MSG(STR_ERR_PROTECTED_PIN);
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,6 +174,8 @@ const PinInfo pin_array[] PROGMEM = {
|
||||||
#define M43_NEVER_TOUCH(Q) false
|
#define M43_NEVER_TOUCH(Q) false
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool pin_is_protected(const pin_t pin);
|
||||||
|
|
||||||
static void print_input_or_output(const bool isout) {
|
static void print_input_or_output(const bool isout) {
|
||||||
SERIAL_ECHOF(isout ? F("Output ") : F("Input "));
|
SERIAL_ECHOF(isout ? F("Output ") : F("Input "));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue