mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 03:24:00 +00:00
machine: rename PinInputPullUp/PinInputPullDown
Some targets used capital PullUp/PullDown, while the documented standard is Pullup/Pulldown. This commit fixes this mismatch, while preserving compatibility with aliases that are marked deprecated.
This commit is contained in:
committed by
Ron Evans
parent
6e6666519c
commit
bc946f346d
@@ -203,8 +203,8 @@ func (u *UART) Disable() {
|
||||
u.C2.Set(0)
|
||||
|
||||
// reconfigure pin
|
||||
u.DefaultRX.Configure(PinConfig{Mode: PinInputPullUp})
|
||||
u.DefaultTX.Configure(PinConfig{Mode: PinInputPullUp})
|
||||
u.DefaultRX.Configure(PinConfig{Mode: PinInputPullup})
|
||||
u.DefaultTX.Configure(PinConfig{Mode: PinInputPullup})
|
||||
|
||||
// clear flags
|
||||
u.S1.Get()
|
||||
|
||||
Reference in New Issue
Block a user