We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d62ba0c commit 5ad321dCopy full SHA for 5ad321d
cores/arduino/wiring_digital.c
@@ -33,6 +33,8 @@ void pinMode(uint8_t pin, PinMode mode)
33
if ((bit_pos == NOT_A_PIN)||(mode > INPUT_PULLUP)) return;
34
35
PORT_t* port = digitalPinToPortStruct(pin);
36
+ if(port == NULL) return;
37
+
38
uint8_t bit_mask = (1 << bit_pos);
39
40
if(mode == OUTPUT){
0 commit comments