Skip to content

Commit c2e8721

Browse files
committed
Enable pull-up on pin 0.
1 parent 05a2d77 commit c2e8721

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hardware/arduino/sam/variants/arduino_due_x/variant.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ void init( void )
348348
// Initialize C library
349349
__libc_init_array();
350350

351-
// Disable pull-up on every pin
352-
for (int i = 0; i < PINS_COUNT; i++)
351+
// Disable pull-up on every pin except RX0
352+
for (int i = 1; i < PINS_COUNT; i++)
353353
digitalWrite(i, LOW);
354354

355355
// Initialize Serial port U(S)ART pins

0 commit comments

Comments
 (0)