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

CarbonixCommon: bit_esc: suppress nil warnings #283

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

robertlong13
Copy link
Collaborator

These are caused by two well-understood race conditions and we don't
need to put them up on the messages tab anymore. This will be fixed
properly in a future PR.

Also, driveby fix for resetting the nil counters. These should be done
every time we get good data, not just when recoving from telemetry loss.

@loki077
Copy link
Contributor

loki077 commented Dec 30, 2024

@robertlong13 CRC will change too

@loki077
Copy link
Contributor

loki077 commented Dec 30, 2024

Also, as the CI suggest the if statement is empty. I think lua is fine with it but not the linter.

@robertlong13
Copy link
Collaborator Author

@robertlong13 CRC will change too

It doesn't. Modules don't count, only top-level scripts.

These are caused by two well-understood race conditions and we don't
need to put them up on the messages tab anymore. This will be fixed
properly in a future PR.

Also, driveby fix for resetting the nil counters. These should be done
every time we get good data, not just when recoving from telemetry loss.
@robertlong13 robertlong13 force-pushed the feature/SW-533-cx-bit-suppress-nil-warnings branch from 64e7301 to a80abda Compare December 30, 2024 05:30
Copy link
Contributor

@Pradeep-Carbonix Pradeep-Carbonix left a comment

Choose a reason for hiding this comment

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

LGTM

Now that we have suppressed the nil warnings, we can correctly assert
that we should not get any warnings normally from CX_BIT.
@robertlong13 robertlong13 force-pushed the feature/SW-533-cx-bit-suppress-nil-warnings branch from 6ff7f43 to 6ed8b45 Compare December 30, 2024 07:04
Copy link
Contributor

@loki077 loki077 left a comment

Choose a reason for hiding this comment

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

Logic Looks correct to me.

@loki077 loki077 merged commit 37a508d into CxPilot-7 Dec 30, 2024
55 checks passed
@loki077 loki077 deleted the feature/SW-533-cx-bit-suppress-nil-warnings branch December 30, 2024 22:40
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.

3 participants