0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-19 08:08:25 +00:00

🩹 Ensure pin_is_protected is defined (#25829)

This commit is contained in:
Andrew 2023-05-15 17:24:36 -04:00 committed by GitHub
parent 46e8b9cad9
commit 99e38c40be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View file

@ -25,7 +25,7 @@
#if ENABLED(PINS_DEBUGGING)
#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 "../../module/endstops.h"

View file

@ -25,7 +25,6 @@
#if ENABLED(DIRECT_PIN_CONTROL)
#include "../gcode.h"
#include "../../MarlinCore.h" // for pin_is_protected
#if HAS_FAN
#include "../../module/temperature.h"
@ -38,6 +37,8 @@
#define OUTPUT_OPEN_DRAIN OUTPUT_OPEN_DRAIN
#endif
bool pin_is_protected(const pin_t pin);
void protected_pin_err() {
SERIAL_ERROR_MSG(STR_ERR_PROTECTED_PIN);
}

View file

@ -174,6 +174,8 @@ const PinInfo pin_array[] PROGMEM = {
#define M43_NEVER_TOUCH(Q) false
#endif
bool pin_is_protected(const pin_t pin);
static void print_input_or_output(const bool isout) {
SERIAL_ECHOF(isout ? F("Output ") : F("Input "));
}