Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(HardwareSerial): fix pin remapping in begin() (#10380)
The pin remapping functions have to be called as early as possible in the begin() function, to immediately convert the input parameters to the GPIO numbers used everywhere in the core. This issue has always been dormant since the introduction of pin remapping in 9b4622d, but was exposed by the recent UART pin detach support, which actually disabled the original Serial0 pins. Move the pin remapping function calls earlier in the begin() function to fix this issue.
- Loading branch information