|
@@ -285,6 +285,9 @@ void setup_powerhold() {
|
285
|
285
|
|
286
|
286
|
#include "pins/sensitive_pins.h"
|
287
|
287
|
|
|
288
|
+#pragma GCC diagnostic push
|
|
289
|
+#pragma GCC diagnostic ignored "-Wnarrowing"
|
|
290
|
+
|
288
|
291
|
bool pin_is_protected(const pin_t pin) {
|
289
|
292
|
static const pin_t sensitive_pins[] PROGMEM = SENSITIVE_PINS;
|
290
|
293
|
LOOP_L_N(i, COUNT(sensitive_pins)) {
|
|
@@ -295,6 +298,8 @@ bool pin_is_protected(const pin_t pin) {
|
295
|
298
|
return false;
|
296
|
299
|
}
|
297
|
300
|
|
|
301
|
+#pragma GCC diagnostic pop
|
|
302
|
+
|
298
|
303
|
void protected_pin_err() {
|
299
|
304
|
SERIAL_ERROR_MSG(STR_ERR_PROTECTED_PIN);
|
300
|
305
|
}
|