-
Notifications
You must be signed in to change notification settings - Fork 19
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
Include full firmware version in test mode welcome message #195
Include full firmware version in test mode welcome message #195
Conversation
Test mode will likely the easiest way for a user to determine which firmware version their machine is running; as we head into wider testing rounds, it seems quite valuable to make this information easily available.
WalkthroughThe recent modifications to the Changes
Sequence Diagram(s)sequenceDiagram
participant Tester
participant Firmware
participant CommunicationSystem
Tester->>Firmware: Request Firmware Version
Firmware-->>Tester: Return "Firmware vX.Y.Z"
Tester->>CommunicationSystem: Send Setup Message with FW_VERSION_SUFFIX
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
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
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/ayab/tester.cpp (1 hunks)
Additional comments not posted (2)
src/ayab/tester.cpp (2)
206-206
: Verify buffer size for snprintf.Ensure that the buffer size
BUFFER_LEN
is sufficient to hold the formatted string, including the firmware version and the suffix.
208-208
: Ensure correctness of format specifiers.The format specifiers
%hhu
are used for unsigned char. Verify that the firmware version components (FW_VERSION_MAJ
,FW_VERSION_MIN
,FW_VERSION_PATCH
) are of the correct type.
Thanks @dl1com ❤️ |
Test mode will likely the easiest way for a user to determine which firmware version their machine is running; as we head into wider testing rounds, it seems quite valuable to make this information easily available.
The current firmware's output (assuming a desktop app that includes AllYarnsAreBeautiful/ayab-desktop#693), as displayed in the hardware test dialog, starts with:
With this PR, the firmware gives a more detailed version designator:
Summary by CodeRabbit
FW_VERSION_SUFFIX
for improved clarity.