mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-18 22:07:58 -04:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user