From 5ebc8bf8a2ffcfe563124386d0776cdd9a3c224f Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 22 Nov 2005 16:07:08 +0000 Subject: [PATCH] Bug 207 - Now handles remote reset command. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1624 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmcontrol-pelco-d.pl.z | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/zmcontrol-pelco-d.pl.z b/scripts/zmcontrol-pelco-d.pl.z index f0f5dbb04..e70a2d96e 100644 --- a/scripts/zmcontrol-pelco-d.pl.z +++ b/scripts/zmcontrol-pelco-d.pl.z @@ -247,6 +247,13 @@ sub sendCmd my $sync = 0xff; +sub remoteReset +{ + print( "Remote Reset\n" ); + my @msg = ( $sync, $address, 0x00, 0x0f, 0x00, 0x00 ); + sendCmd( \@msg ); +} + sub cameraOff { print( "Camera Off\n" ); @@ -582,7 +589,11 @@ sub presetHome sendCmd( \@msg ); } -if ( $command eq "wake" ) +if ( $command eq "reset" ) +{ + remoteReset(); +} +elsif ( $command eq "wake" ) { cameraOn(); }