-
Notifications
You must be signed in to change notification settings - Fork 1
Ble prototype example #31
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
base: master
Are you sure you want to change the base?
Conversation
WalkthroughAdded a new MODE_BLUETOOTH type tag to EmotiBitPacket’s TypeTag (declaration in header, definition in source). Bumped library version from 1.7.2 to 1.7.3. No control flow or logic changes. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal). Please share your feedback with us on this Discord post. 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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (3)
library.properties (1)
5-5
: Fix typo in user-facing sentence.Change “successfull” → “successful”.
- sentence=A Utilities Library required for the successfull operation of EmotiBit FeatherWing and EmotiBit Oscilloscope Library + sentence=A Utilities Library required for the successful operation of EmotiBit FeatherWing and EmotiBit Oscilloscope Librarysrc/EmotiBitPacket.h (2)
200-200
: New tag declaration is consistent with existing MODE_ constants.*No API/ABI surface change beyond the symbol; good placement near other mode tags. Add a brief comment describing when MB is emitted/consumed.
36-43
: typeTag in packed header is 2 bytes (no terminator).Constants are C-strings like "MB\0", but Structure::typeTag holds 2 raw bytes. Consider clarifying with a comment to avoid accidental string use.
- char typeTag[2]; + char typeTag[2]; // 2 raw bytes; not null-terminated
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
library.properties
(1 hunks)src/EmotiBitPacket.cpp
(1 hunks)src/EmotiBitPacket.h
(1 hunks)
🔇 Additional comments (3)
library.properties (1)
2-2
: Version bump to 1.7.3 — LGTM.Please coordinate tagging/release notes and ensure dependent repos (e.g., FeatherWing PR #331) reference this version before merge.
src/EmotiBitPacket.cpp (2)
70-70
: Definition of MODE_BLUETOOTH — LGTM.Matches header; tag "MB" follows existing two‑char convention with explicit terminator.
63-71
: Double‑check downstream handling for new mode.If any state machines, filters, or UI rely on a whitelist of MODE_* tags, ensure "MB" is recognized or safely ignored until BLE feature lands everywhere.
Description
This PR lets XPlat enable bluetooth functionality. This change is:
In depth review can be found in PR #331 on the featherwing branch.
Requirements
Issues Referenced
None
Documentation update
None
Notes for Reviewer
Testing
Results
All tests will be displayed on the Featherwing PR
Feature Tests
Shared files
Checklist to allow merge
master
ofxEmotiBitVersion.h
DIGITAL_WRITE_DEBUG
= false (if set true while testing)Screenshots:
Summary by CodeRabbit
New Features
Chores