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

Invalid Displaytype in Pinmapping results in permanent reboots #1163

Closed
vaterlangen opened this issue Jul 20, 2023 · 1 comment
Closed

Invalid Displaytype in Pinmapping results in permanent reboots #1163

vaterlangen opened this issue Jul 20, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@vaterlangen
Copy link
Contributor

vaterlangen commented Jul 20, 2023

What happened?

Accidentally added invalid display type "-1" to pin mapping.
After upload, OpenDTU hangs on a permanent reboot due to exception (guess: static_cast of unchecked integer to enum results in exception)

To Reproduce Bug

Change display type in pin mapping to -1 (or, most likely, to anything not defined in enum)

Expected Behavior

Config is ignored/rejected and system allows user to update pin mapping via web ui

Install Method

Pre-Compiled binary from GitHub

What git-hash/version of OpenDTU?

v23.7.12

Relevant log/trace output

Not captured :(

Anything else?

Resolved by commenting out initializing the display in the code. Then I was able to boot the system and replace the invalid pin mapping via web UI

Just to be clear: There is no pending issue to me - just fileing a bug i stumbled in

@vaterlangen vaterlangen added the bug Something isn't working label Jul 20, 2023
LennartF22 pushed a commit to LennartF22/OpenDTU that referenced this issue Aug 2, 2023
Copy link

github-actions bot commented Apr 4, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant