Skip to content

Commit

Permalink
Merge pull request #34 from opentrv/TRV1.5-rc5-lowbattery
Browse files Browse the repository at this point in the history
Error reporting finally working
  • Loading branch information
Denzo77 authored Nov 16, 2017
2 parents 92b7b10 + 6f7c612 commit fd1726e
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit fd1726e

Please sign in to comment.