Skip to content

getMode Fix#16

Open
DPower11 wants to merge 5 commits intoparticle-iot:masterfrom
DPower11:master
Open

getMode Fix#16
DPower11 wants to merge 5 commits intoparticle-iot:masterfrom
DPower11:master

Conversation

@DPower11
Copy link

Fixed issue where the "mode" variable never changed when the beginInPinMode(PinMode _pinMode) was called. Removed the variable "mode" and now return the pin mode regardless of how it was written (either with beginInPinMode or manually in a setup file with pinMode).

Note: I left the type of getMode() as boolean but this will only tell you if the pin mode is output or input, not pull-up/pull-down input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant