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

Error reporting finally working #34

Merged
merged 1 commit into from
Nov 16, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ valveUI_t valveUI(
OTV0P2BASE::SimpleStatsRotation<13> ss1; // Configured for maximum different stats.

// Error reporting
OTV0P2BASE::ErrorReport ErrorReporter;
extern OTV0P2BASE::ErrorReport OTV0P2BASE::ErrorReporter;


/******************************************************************************
Expand Down Expand Up @@ -489,7 +489,7 @@ void bareStatsTX() {
// Show reset counter. Low priority.
ss1.put(V0p2_SENSOR_TAG_F("R"), resetCount, true);
// Send error reports.
ss1.put(ErrorReporter, true);
ss1.put(OTV0P2BASE::ErrorReporter, true);

const uint8_t privacyLevel = OTV0P2BASE::stTXalwaysAll;
// Redirect JSON output appropriately.
Expand Down Expand Up @@ -921,7 +921,7 @@ void loop()
// Should be called once per minute to work correctly.
NominalRadValve.read();
// Update/age errors and warnings.
ErrorReporter.read();
OTV0P2BASE::ErrorReporter.read();
break;
}
// Stats samples; should never be missed.
Expand Down