Skip to content

Commit 721b7d8

Browse files
committed
re-organize this code so it doesn't give my computer fits
1 parent 0c3b62f commit 721b7d8

File tree

1 file changed

+4
-5
lines changed
  • ports/atmel-samd/common-hal/microcontroller

1 file changed

+4
-5
lines changed

ports/atmel-samd/common-hal/microcontroller/Pin.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,11 @@ bool pin_number_is_free(uint8_t pin_number) {
161161
return false;
162162
}
163163
if (pin_number == PIN_PA30
164-
#ifdef SAM_D5X_E5X
165-
) {
166-
#endif
167164
#ifdef SAMD21
168-
|| pin_number == PIN_PA31) {
169-
#endif) {
165+
|| pin_number == PIN_PA31
166+
#endif
167+
)
168+
{
170169
return state->bit.PMUXEN == 1 && ((pmux->reg >> (4 * pin_index % 2)) & 0xf) == SWD_MUX;
171170
}
172171
}

0 commit comments

Comments
 (0)