From 6f7c612d1f62ed9067ca5300c4740dc59b1255c4 Mon Sep 17 00:00:00 2001 From: denzo Date: Thu, 16 Nov 2017 11:52:11 +0000 Subject: [PATCH] Error reporting finally working --- .../REV7RadValve/REV7RadValve.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Arduino/hardware/V0p2_Main_PCB_REV7_DORM1_and_REV8/REV7RadValve/REV7RadValve.ino b/Arduino/hardware/V0p2_Main_PCB_REV7_DORM1_and_REV8/REV7RadValve/REV7RadValve.ino index 7a1f3533..5580f558 100644 --- a/Arduino/hardware/V0p2_Main_PCB_REV7_DORM1_and_REV8/REV7RadValve/REV7RadValve.ino +++ b/Arduino/hardware/V0p2_Main_PCB_REV7_DORM1_and_REV8/REV7RadValve/REV7RadValve.ino @@ -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; /****************************************************************************** @@ -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. @@ -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.