Skip to content

Conversation

DartLazer
Copy link

Pull Request Description:

This pull request addresses a variable reference issue in hid_gamepad.py, where bytesSize was used instead of reportSize for initializing report byte arrays. This caused a NameError when running the code.

Changes Made:

Updated bytesSize to reportSize in two places:

  • self._report = bytearray(reportSize)
  • self._last_report = bytearray(reportSize)

These changes correct the NameError and ensure consistent use of reportSize in the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant