change Enable/Disable to act on capture. suspend/resume is for motion
This commit is contained in:
parent
b42190ee3c
commit
04bdf0ac6b
16
src/zmu.cpp
16
src/zmu.cpp
|
@ -130,10 +130,10 @@ void Usage(int status=-1) {
|
|||
" -n, --noalarm : Force no alarms in monitor, this will prevent alarms until cancelled with -c\n"
|
||||
" -c, --cancel : Cancel a forced alarm/noalarm in monitor, required after being enabled with -a or -n\n"
|
||||
" -L, --reload : Signal monitor to reload settings\n"
|
||||
" -E, --enable : Enable detection, wake monitor up\n"
|
||||
" -D, --disable : Disable detection, put monitor to sleep\n"
|
||||
" -u, --suspend : Suspend detection, useful to prevent bogus alarms when panning etc\n"
|
||||
" -r, --resume : Resume detection after a suspend\n"
|
||||
" -E, --enable : Enable capture, wake monitor up\n"
|
||||
" -D, --disable : Disable capture, put monitor to sleep\n"
|
||||
" -u, --suspend : Suspend motion detection, useful to prevent bogus alarms when panning etc\n"
|
||||
" -r, --resume : Resume motion detection after a suspend\n"
|
||||
" -U, --username <username> : When running in authenticated mode the username and\n"
|
||||
" -P, --password <password> : password combination of the given user\n"
|
||||
" -A, --auth <authentication> : Pass authentication hash string instead of user details\n"
|
||||
|
@ -652,22 +652,22 @@ int main(int argc, char *argv[]) {
|
|||
}
|
||||
if ( function & ZMU_ENABLE ) {
|
||||
if ( verbose )
|
||||
printf("Enabling event generation\n");
|
||||
printf("Enabling capturing\n");
|
||||
monitor->actionEnable();
|
||||
}
|
||||
if ( function & ZMU_DISABLE ) {
|
||||
if ( verbose )
|
||||
printf("Disabling event generation\n");
|
||||
printf("Disabling capturing\n");
|
||||
monitor->actionDisable();
|
||||
}
|
||||
if ( function & ZMU_SUSPEND ) {
|
||||
if ( verbose )
|
||||
printf("Suspending event generation\n");
|
||||
printf("Suspending motion detection\n");
|
||||
monitor->actionSuspend();
|
||||
}
|
||||
if ( function & ZMU_RESUME ) {
|
||||
if ( verbose )
|
||||
printf("Resuming event generation\n");
|
||||
printf("Resuming motion detection\n");
|
||||
monitor->actionResume();
|
||||
}
|
||||
if ( function & ZMU_QUERY ) {
|
||||
|
|
Loading…
Reference in New Issue