Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GPIO] Fix mode reported in response to Status command #4849

Merged
merged 1 commit into from
Oct 12, 2023

Conversation

dobrykod
Copy link
Contributor

Response to status, mcp, 9 always reports the same "mode": "input":
{
"log": "",
"plugin": 9,
"pin": 9,
"mode": "input",
"state": 1
}

This commit fixes reported mode if the pin is initialized.
Now I see expected response in the widget on http://esp-easy.local/tools and via MQTT:
{
"log": "",
"plugin": 9,
"pin": 9,
"mode": "output",
"state": 1
}

If the pin is not initialized it will print the default "mode": "input" as before.

@TD-er TD-er merged commit 2fabe31 into letscontrolit:mega Oct 12, 2023
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.

2 participants