We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fccec8 commit cab4490Copy full SHA for cab4490
arduino/node_sewagepump.cpp
@@ -11,6 +11,8 @@
11
#define DISTANCE_DATA_PIN 13
12
#define BUTTON_PIN 4
13
#define RELAY_PIN 5
14
+#define ON_TIME 15 // minutes
15
+#define OFF_TIME 30 // minutes
16
17
static bool str2int(const char *data, int& value)
18
{
@@ -38,8 +40,8 @@ void NodeSewagePump::setup(void)
38
40
39
41
m_adc.begin();
42
- m_pump_on_trigger_time = 30; // 30 minutes
- m_pump_off_time = 30; // 30 minutes
43
+ m_pump_on_trigger_time = ON_TIME * 60 * 1000; // minutes => millis
44
+ m_pump_off_time = OFF_TIME * 60 * 1000; // minutes => millis
45
m_pump_on_min_current = 500; // 500mA
46
47
m_pump_on = false;
0 commit comments