-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added begin. Can't figure out why needed.
Signed-off-by: Sara Damiano <[email protected]>
- Loading branch information
Showing
3 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fde0f83
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.
All sensor and variable subclasses must be included in the Menu a la Carte example
missing_menu_docs
fde0f83
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.
@tpwrules I can't figure out why this isn't working for me. I'm running the DRWI_Mayfly1_WiFi example. My only guess is that it's some "static initialization order fiasco" related to the initialization of the static log buffer. The call to the
_logBuffer.setNumVariables(_baseLogger->getArrayVarCount());
in the EnviroDIYPublisher isn't setting the correct number. I've combed through the constructor, member initialization, and script construction orders for the array, logger, and publisher, and they all look fine. The call to the logger and then to the array should return the right number; it's just not being set correctly in the log buffer.With my debugging, I'm seeing this:
If I add the begin statement for the publisher to the example, which forces
_logBuffer.setNumVariables(_baseLogger->getArrayVarCount());
to be called at runtime, it works perfectly.fde0f83
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.
@tpwrules If I make the log-buffer non-static, I don't have any problems with the initialization.
fde0f83
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.
Then we should probably make it non static. I will do that in my branch.