Fix: Add missing mXLed and mYLed instance variables in AdalightClient#28
Merged
Conversation
Co-authored-by: haumlab <222520099+haumlab@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add missing instance variables mXLed and mYLed in AdalightClient
Fix: Add missing mXLed and mYLed instance variables in AdalightClient
Feb 15, 2026
b1ume
marked this pull request as ready for review
February 15, 2026 22:31
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a compilation failure in the network client layer by declaring previously missing LED-dimension instance fields used for LED count calculations and image-to-LED extraction.
Changes:
- Added
mXLedandmYLedinstance variables toAdalightClient. - Ensures constructor assignments and downstream usages compile successfully.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+36
to
+37
| private int mXLed; | ||
| private int mYLed; |
There was a problem hiding this comment.
mXLed/mYLed are only assigned once in the constructor and never reassigned; consider making them final to match the rest of the immutable configuration fields in this client (and e.g. WLEDClient).
Suggested change
| private int mXLed; | |
| private int mYLed; | |
| private final int mXLed; | |
| private final int mYLed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Compilation was failing with "cannot find symbol" errors at lines 50, 51, 176, 196, and 223 in
AdalightClient.javabecausemXLedandmYLedwere used but never declared.Changes
Added missing instance variable declarations:
These variables are assigned from
LedDataExtractor.LedConfigin the constructor and used throughout for LED count calculations and data extraction.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xmx2048m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.10.2-all/7iv73wktx1xtkvlq19urqw1wm/gradle-8.10.2/lib/gradle-daemon-main-8.10.2.jar -javaagent:/home/REDACTED/.gradle/wrapper/dists/gradle-8.10.2-all/7iv73wktx1xtkvlq19urqw1wm/gradle-8.10.2/lib/agents/gradle-instrumentation-agent-8.10.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10.2(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.