|
@@ -21,7 +21,7 @@ public:
|
|
bool motionDetected = digitalRead(_pin) == HIGH;
|
|
bool motionDetected = digitalRead(_pin) == HIGH;
|
|
|
|
|
|
if (motionDetected) {
|
|
if (motionDetected) {
|
|
- _motionDetectedTime = mllis();
|
|
|
|
|
|
+ _motionDetectedTime = millis();
|
|
if (!_currentMotionState)
|
|
if (!_currentMotionState)
|
|
_startCallback();
|
|
_startCallback();
|
|
_currentMotionState = motionDetected;
|
|
_currentMotionState = motionDetected;
|