Skip to content

Fix unused variables - #486

Open
sandr01d wants to merge 1 commit into
Keychron:2025q3from
sandr01d:fix-unused-variables
Open

Fix unused variables#486
sandr01d wants to merge 1 commit into
Keychron:2025q3from
sandr01d:fix-unused-variables

Conversation

@sandr01d

@sandr01d sandr01d commented Jul 2, 2026

Copy link
Copy Markdown

Description

Removes unused variables. These are usually only warning but become errors due to -Werror being set in common_rules.mk.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

chefranov added a commit to chefranov/qmk_firmware that referenced this pull request Aug 13, 2026
The battery percentage was only ever pushed into the wireless module, which
exposes it through the bluetooth battery service. A host reached through the
2.4GHz receiver therefore had no way to ask for it at all. Answer command 0xA4
with the cached percentage, as Keychron#504 does.

Also drop the checksum computed and then discarded in lkbt51_dfu_tx(), which
summed buf[i] instead of buf[k] and so was not a checksum in the first place.
Same removal as Keychron#486.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant