Move SENSITIVE_PINS to its own file

This commit is contained in:
Scott Lahteine
2018-10-11 00:58:41 -05:00
parent 45e738876a
commit 1407afad73
4 changed files with 532 additions and 124 deletions

View File

@ -259,6 +259,9 @@ void setup_powerhold() {
/**
* Sensitive pin test for M42, M226
*/
#include "pins/sensitive_pins.h"
bool pin_is_protected(const pin_t pin) {
static const pin_t sensitive_pins[] PROGMEM = SENSITIVE_PINS;
for (uint8_t i = 0; i < COUNT(sensitive_pins); i++) {