Skip to content

literally added a single zero - #193

Merged
hhvrc merged 1 commit into
OpenShock:masterfrom
LilaHexe0:master
Dec 4, 2026
Merged

hhvrc merged 1 commit into
OpenShock:masterfrom
LilaHexe0:master

Conversation

@LilaHexe0

@LilaHexe0 LilaHexe0 commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

What does this change?

Added a zero where it belongs after the end of the transmission for the CaiXianlin shocker. The source code here uses 3 zeroes too: https://github.com/OpenShock/Firmware/blob/4c4f6ae32628c74f4fcf37ffd2d56a03cd19d23e/components/protocols/src/CaiXianlinEncoder.cpp#L58

How was it tested?

After spending literally hours trying to debug my code, I realised the documentation is wrong. This fixes it so others may be spared my pain

Checklist

  • The change is focused on one thing.
  • Tests, formatter and linter pass locally.
  • Documentation is updated where behaviour changed.
  • No secrets, credentials or personal data are included.
  • If this touches device control, limits, sharing, authentication or firmware updates, the description says so and explains how it was tested.

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The packet layout documentation changes the [END] value from 00 to 000.

Changes: Packet Layout

Layer / File(s) Summary
Update documented end field
docs/hardware/shockers/caixianlin.mdx
The packet layout lists [END] as 000 instead of 00.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 41147

This documentation-only change corrects a packet layout value to match the firmware reference. It has no runtime impact and is safe to merge.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Title check Inconclusive The title "literally added a single zero" is vague. It does not name the file, the field, or the purpose of the change. The change corrects the documented [END] field in the caixianlin packet layout f… Rewrite the title to name the change and its target, for example: "Fix [END] field value in Caixianlin packet docs". This makes the primary change clear in the history.
Passed Passed checks: 3 passed

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "literally added a single zero" is vague. It does not name the file, the field, or the purpose of the change. The change corrects the documented [END] field in the caixianlin packet layout from 00 to 000 so it matches the firmware. The title does describe the edit itself, but a teammate scanning history cannot tell which documentation was fixed.

Resolution

Rewrite the title to name the change and its target, for example: "Fix [END] field value in Caixianlin packet docs". This makes the primary change clear in the history.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3c9fa2b7-de8f-4eb3-af14-1d13c9d163e5
Commits

Reviewing files that changed from the base of the PR and between 1f077cd and 41147ac.

Files selected for processing: 1

  • docs/hardware/shockers/caixianlin.mdx

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@LilaHexe0

Copy link
Copy Markdown
Contributor Author

lgtm 🚀

@hhvrc hhvrc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Smallest PR I've ever reviewed 🤣

LGTM tho!

Thanks ❤️

@hhvrc
hhvrc merged commit 4e18131 into OpenShock:master Dec 4, 2026
1 check passed
@LilaHexe0

Copy link
Copy Markdown
Contributor Author

Second one-byte merge request I've done lol

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.

2 participants