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

Making ping-entries an extern declaration #347

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

LeStarch
Copy link
Collaborator

@LeStarch LeStarch commented Nov 9, 2023

This PR exposes pingEntries as an extern and adds a constant representing the number of entries it has. This makes it easy for users to lift and use pingEntries from the autocoder.

@LeStarch LeStarch requested a review from bocchino November 9, 2023 01:26
@@ -3,6 +3,6 @@ package fpp.compiler.util
/** The compiler version */
object Version {

val v = "[unknown version]"
val v = "v2.0.0-4-gc8371371"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Revert this.

namespace ConfigObjects {

namespace health {
Svc::Health::PingEntry pingEntries[] = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add num entries as NUM_PING_ENTRIES

Copy link
Collaborator

@bocchino bocchino left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for making this PR. It closes a loophole in the alternate way of configuring component instances.

@bocchino bocchino merged commit 1e7792a into nasa:main Nov 9, 2023
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