-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing .. don't use this build for production
- Loading branch information
1 parent
bedc5bf
commit 52f3151
Showing
6 changed files
with
28 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
* Copyright (c) 2011-2015 Sam C. Lin <[email protected]> | ||
* Copyright (c) 2011-2014 Chris Howell <[email protected]> | ||
* timer code Copyright (c) 2013 Kevin L <[email protected]> | ||
* portions Copyright (c) 2014 Nick Sayer <[email protected]> | ||
* portions Copyright (c) 2014-2015 Nick Sayer <[email protected]> | ||
* portions Copyright (c) 2015 Craig Kirkpatrick | ||
Revised Ver By Reason | ||
|
@@ -325,10 +325,10 @@ void TempMonitor::Init() | |
void TempMonitor::Read() | ||
{ | ||
#ifdef TMP007_IS_ON_I2C | ||
m_TMP007_temperature = 10 * m_tmp007.readObjTempC(); // using the TI TMP007 IR sensor | ||
m_TMP007_temperature = m_tmp007.readObjTempC10(); // using the TI TMP007 IR sensor | ||
#endif | ||
#ifdef MCP9808_IS_ON_I2C | ||
m_MCP9808_temperature = 10 * m_tempSensor.readTempC(); // for the MCP9808 | ||
m_MCP9808_temperature = m_tempSensor.readTempC10(); // for the MCP9808 | ||
#endif | ||
|
||
|
||
|
@@ -1296,10 +1296,14 @@ uint8_t Gfi::SelfTest() | |
} | ||
while(pin.read()); | ||
|
||
#ifndef OPENEVSE_2 | ||
// sometimes getting spurious GFI faults when testing just before closing | ||
// relay. | ||
// wait a little more for everything to settle down | ||
delay(200); | ||
// this delay is needed only if 10uF cap is in the circuit, which makes the circuit | ||
// temporarily overly sensitive to trips until it discharges | ||
delay(1000); | ||
#endif // OPENEVSE_2 | ||
|
||
m_GfiFault = 0; | ||
testInProgress = 0; | ||
|