|
|
|
@ -285,6 +285,9 @@ void setup_powerhold() {
|
|
|
|
|
|
|
|
|
|
#include "pins/sensitive_pins.h"
|
|
|
|
|
|
|
|
|
|
#pragma GCC diagnostic push
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wnarrowing"
|
|
|
|
|
|
|
|
|
|
bool pin_is_protected(const pin_t pin) {
|
|
|
|
|
static const pin_t sensitive_pins[] PROGMEM = SENSITIVE_PINS;
|
|
|
|
|
LOOP_L_N(i, COUNT(sensitive_pins)) {
|
|
|
|
@ -295,6 +298,8 @@ bool pin_is_protected(const pin_t pin) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#pragma GCC diagnostic pop
|
|
|
|
|
|
|
|
|
|
void protected_pin_err() {
|
|
|
|
|
SERIAL_ERROR_MSG(STR_ERR_PROTECTED_PIN);
|
|
|
|
|
}
|
|
|
|
|