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

[sonyprojector] Fix edge case in mac address decoding #16976

Merged
merged 2 commits into from
Jul 1, 2024

Conversation

andrewfg
Copy link
Contributor

@andrewfg andrewfg commented Jul 1, 2024

In PR #16972 we fixed the decoding of mac addresses, but in the edge case that the mac byte value is less than 16, the fix fails because Integer.toHexString() does not produce leading zeros (i.e. the mac address appears wrongly as 12-34-5-67-89-0 instead of 12-34-05-67-89-00)

Signed-off-by: Andrew Fiddian-Green software@whitebear.ch

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg added the bug An unexpected problem or unintended behavior of an add-on label Jul 1, 2024
@andrewfg andrewfg self-assigned this Jul 1, 2024
@andrewfg andrewfg requested a review from lolodomo as a code owner July 1, 2024 14:50
@andrewfg andrewfg changed the title [sonyprojector] mac fix edge case [sonyprojector] Fix edge case in mac address decoding Jul 1, 2024
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@lolodomo lolodomo merged commit 812d7a7 into openhab:main Jul 1, 2024
5 checks passed
@lolodomo lolodomo added this to the 4.2 milestone Jul 1, 2024
@lolodomo lolodomo added the regression Regression that happened during the development of a release. Not shown on final release notes. label Jul 1, 2024
psmedley pushed a commit to psmedley/openhab-addons that referenced this pull request Jul 12, 2024
* [sonyprojector] mac fix edge case
* [sonyprojector] delete redundant toLowerCase() call

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
@andrewfg andrewfg deleted the sony-mac-fix-2 branch August 25, 2024 12:05
pgfeller pushed a commit to pgfeller/openhab-addons that referenced this pull request Sep 29, 2024
* [sonyprojector] mac fix edge case
* [sonyprojector] delete redundant toLowerCase() call

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Signed-off-by: Patrik Gfeller <patrik.gfeller@proton.me>
joni1993 pushed a commit to joni1993/openhab-addons that referenced this pull request Oct 15, 2024
* [sonyprojector] mac fix edge case
* [sonyprojector] delete redundant toLowerCase() call

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
matchews pushed a commit to matchews/openhab-addons that referenced this pull request Oct 18, 2024
* [sonyprojector] mac fix edge case
* [sonyprojector] delete redundant toLowerCase() call

Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on regression Regression that happened during the development of a release. Not shown on final release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants