Commit 2edd03d3 authored by Hermann Mayer's avatar Hermann Mayer

[Binary] Changed the log level of the message when a motion was detected.

parent 26aaa641
...@@ -104,7 +104,7 @@ void detect_motions(struct config *conf) ...@@ -104,7 +104,7 @@ void detect_motions(struct config *conf)
if (1 == pirmtn_detected()) { if (1 == pirmtn_detected()) {
utlog(LOG_INFO, "A motion was detected\n"); utlog(LOG_NOTICE, "A motion was detected\n");
// Check if the light_sensor is zero, // Check if the light_sensor is zero,
// then we skip the light sensor check // then we skip the light sensor check
...@@ -113,10 +113,10 @@ void detect_motions(struct config *conf) ...@@ -113,10 +113,10 @@ void detect_motions(struct config *conf)
allvl = amblght_level(); allvl = amblght_level();
if (allvl >= conf->tholds.light_sensor) { if (allvl >= conf->tholds.light_sensor) {
// It is to bright in here, so its unlikely to change in 30 secs // It is too bright in here, so its unlikely to change in 30 secs
utlog(LOG_INFO, " %s (%d) %s (%d), %s\n", "The ambient light level", utlog(LOG_INFO, " %s (%d) %s (%d), %s\n", "The ambient light level",
allvl, "passed the threshold", conf->tholds.light_sensor, allvl, "passed the threshold", conf->tholds.light_sensor,
"it is to bright in here"); "it's too bright in here");
sleep(30); sleep(30);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment