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

[Core] Deprecate Split Transaction status field #16023

Merged

Conversation

KarlK90
Copy link
Member

@KarlK90 KarlK90 commented Jan 24, 2022

Description

It is a left over from previous serial implementations like the helix keyboard. The field is read and written to in split communications, but never evaluated as the current core implementation relies on the return value of soft_serial_transaction which is treated as a bool anyways. Therefore status is removed and soft_serial_transaction returns a bool now.

soft_serial_get_and_clean_status is removed as well as it is dead code.

Size impact

AVR: -202 Bytes

./util/size_regression.sh -d maintenance/deprecate-transaction-status crkbd:default
Size:    27572, delta:   -202 -- 2582edb1da Deprecate split transactions status field

ARM: +96 Bytes

./util/size_regression.sh -d maintenance/deprecate-transaction-status zvecr/zv48/f411:default
Size:    34352, delta:    +96 -- 2582edb1da Deprecate split transactions status field

Types of Changes

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

Issues Fixed or Closed by This PR

  • Actually frees about 200 bytes on AVR splits where space is already tight

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).

@github-actions github-actions bot added the core label Jan 24, 2022
It is a left over from previous serial implementations like the helix
keyboard. The field is read and written to in split communications, but
never evaluated as the current core implementation relies on the return
value of soft_serial_transaction which is treated as a bool. Therefore
status is removed and soft_serial_transaction returns a bool now.

soft_serial_get_and_clean_status is removed as it is dead code.
@KarlK90 KarlK90 force-pushed the maintenance/deprecate-transaction-status branch from 2582edb to 5929e5d Compare January 24, 2022 13:04
Copy link
Member

@drashna drashna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem to break anything, at least on ARM.

@drashna drashna requested a review from a team January 24, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants