Skip to content

Commit

Permalink
Move start ignore to raspimjpeg to allow timed captures from schedule…
Browse files Browse the repository at this point in the history
… with no stop
  • Loading branch information
Robert Tidey committed Aug 1, 2015
1 parent 21ab816 commit 9ccbef2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified bin/raspimjpeg
Binary file not shown.
4 changes: 2 additions & 2 deletions www/schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ function mainCLI() {

}
} else if ($cmd == SCHEDULE_START || $autocapture == 1) {
if ($lastOnCommand < 0 && $lastDayPeriod >= 0) {
if ($lastDayPeriod >= 0) {
if ($autocapture == 1) {
$autocapture = 2;
writeLog('Start triggered by autocapture');
Expand All @@ -685,7 +685,7 @@ function mainCLI() {
$captureStart = time();
}
} else {
writeLog('Start capture request ignored, already started');
writeLog('Start capture request ignored, day period not initialised yet');
}
} else if ($cmd == SCHEDULE_RESET) {
writeLog("Reload parameters command requested");
Expand Down

0 comments on commit 9ccbef2

Please sign in to comment.