fix microcontroller pin ommission

This commit is contained in:
Lucian Copeland 2020-01-22 12:12:27 -05:00
parent 3f43155b63
commit b326ee0a3d

View File

@ -76,6 +76,7 @@ void reset_pin_number(uint8_t pin_port, uint8_t pin_number) {
} }
// Clear claimed bit & reset // Clear claimed bit & reset
claimed_pins[pin_port] &= ~(1<<pin_number); claimed_pins[pin_port] &= ~(1<<pin_number);
never_reset_pins[pin_port] &= ~(1<<pin_number);
HAL_GPIO_DeInit(ports[pin_port], 1<<pin_number); HAL_GPIO_DeInit(ports[pin_port], 1<<pin_number);
#ifdef MICROPY_HW_NEOPIXEL #ifdef MICROPY_HW_NEOPIXEL