Lean on Arduino log library instead of custom logging methods (#546)
* Lean on Arduino log library instead of custom logging methods
This commit is contained in:
1 parent
824346b19c
commit
f3c9d6dd90
28 files changed
+557
-745
No files matched your search
@@ -32,6 +32,7 @@
|
||||
|
||||
void setupHCSR501()
|
||||
{
|
||||
Log.notice(F("HCSR501 pin: %d" CR), HCSR501_PIN);
|
||||
pinMode(HCSR501_PIN, INPUT); // declare HC SR-501 pin as input
|
||||
}
|
||||
|
||||
@@ -53,7 +54,6 @@ void MeasureHCSR501()
|
||||
{
|
||||
//turned on
|
||||
HCSR501data.set("hcsr501", "true");
|
||||
trc(F("HC SR501 Motion started"));
|
||||
pirState = HIGH;
|
||||
}
|
||||
}
|
||||
@@ -63,7 +63,6 @@ void MeasureHCSR501()
|
||||
{
|
||||
// turned off
|
||||
HCSR501data.set("hcsr501", "false");
|
||||
trc(F("HC SR501 Motion ended"));
|
||||
pirState = LOW;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user