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() (espressif#10379)
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 2.x via 9b4622d, but was exposed by the proper pin muxing support that is present in the 3.x core. Move the pin remapping function calls earlier in the begin() function to fix this issue.
- Loading branch information