Bug 207 - Now handles remote reset command.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1624 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan
2005-11-22 16:07:08 +00:00
parent e8fbaf354c
commit 5ebc8bf8a2

View File

@@ -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();
}