-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
drivers/gpio: SA4000 warning in max7219_driver.go #617
Comments
Hello @quasilyte I agree that looks very odd to me. @conejoninja any reason not to simplify this code? |
conejoninja
added a commit
to conejoninja/gobot
that referenced
this issue
Sep 16, 2018
deadprogram
added a commit
that referenced
this issue
Sep 16, 2018
Simplify code as suggested in #617
deadprogram
added
interface-request
things like new protocols and/or interfaces
and removed
question
labels
Sep 16, 2018
There is now code in the |
deadprogram
pushed a commit
that referenced
this issue
May 22, 2019
deadprogram
removed
the
interface-request
things like new protocols and/or interfaces
label
May 22, 2019
This code was release in v1.13.0 thank you! Now closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both gocritic and megacheck (staticcheck) find these code lines suspicious:
gobot/drivers/gpio/max7219_driver.go
Line 89 in d7818a7
gobot/drivers/gpio/max7219_driver.go
Line 65 in d7818a7
&
is used with same RHS and LHS operands.Should probably be simplified as
x&x
=>x
, but as it looks somewhat confusing, I've opened an issue instead of sending a PR (maybe there is some IoT-related domain convention sox&x
makes sense here).The text was updated successfully, but these errors were encountered: