Skip to content

Conversation

@nerdCopter
Copy link
Owner

No description provided.

@nerdCopter nerdCopter marked this pull request as ready for review February 19, 2024 20:25
@nerdCopter nerdCopter merged commit ba00b0b into master Feb 19, 2024
@nerdCopter nerdCopter deleted the 20240219_GitHub_PR_Artifacts branch February 19, 2024 20:25
@nerdCopter nerdCopter restored the 20240219_GitHub_PR_Artifacts branch June 26, 2024 14:35
nerdCopter added a commit that referenced this pull request Oct 24, 2025
Fixes 3 issues from CodeRabbitAI review:

1. cli_unittest.cc: Use writable char arrays instead of casting string
   literals to char*. Prevents undefined behavior when cliVtx()
   mutates the buffer (string literals are read-only on most platforms).
   Fixed 5 instances.

2. vtx_unittest.cc: Fix memset() to zero the struct, not the pointer
   address. Was using memset(&cac, ...) instead of memset(cac, ...).
   Also use vtxConfigMutable() and remove const.

3. telemetry_ghst_unittest.cc: Change getEstimatedAltitude() return
   type from uint32_t to int32_t. Altitude can be negative (below sea
   level) and other tests expect signed. Add void parameter.

All tests pass (38/38 PASS, 2 DISABLED).

Resolves PR review outside diff range comments #3, #4, #5.
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