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 bf454d8 commit a08cb3fCopy full SHA for a08cb3f
cores/arduino/wiring_digital.c
@@ -88,7 +88,7 @@ void digitalWrite( uint32_t ulPin, uint32_t ulVal )
88
89
if ( (PORT->Group[port].DIRSET.reg & pinMask) == 0 ) {
90
// the pin is not an output, disable pull-up if val is LOW, otherwise enable pull-up
91
- PORT->Group[port].PINCFG[pin].bit.PULLEN = (ulVal != LOW) ;
+ PORT->Group[port].PINCFG[pin].bit.PULLEN = ((ulVal == LOW) ? 0 : 1) ;
92
}
93
94
switch ( ulVal )
0 commit comments