Commented out some unnecessary debug
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3156 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
1d77e03622
commit
257f975558
|
@ -1228,13 +1228,13 @@ int LocalCamera::Brightness( int p_brightness )
|
||||||
Error( "Unable to query brightness: %s", strerror(errno) )
|
Error( "Unable to query brightness: %s", strerror(errno) )
|
||||||
else
|
else
|
||||||
Warning( "Brightness control is not suppported" )
|
Warning( "Brightness control is not suppported" )
|
||||||
Info( "Brightness 1 %d", vid_control.value );
|
//Info( "Brightness 1 %d", vid_control.value );
|
||||||
}
|
}
|
||||||
else if ( p_brightness >= 0 )
|
else if ( p_brightness >= 0 )
|
||||||
{
|
{
|
||||||
vid_control.value = p_brightness;
|
vid_control.value = p_brightness;
|
||||||
|
|
||||||
Info( "Brightness 2 %d", vid_control.value );
|
//Info( "Brightness 2 %d", vid_control.value );
|
||||||
/* The driver may clamp the value or return ERANGE, ignored here */
|
/* The driver may clamp the value or return ERANGE, ignored here */
|
||||||
if ( vidioctl ( vid_fd, VIDIOC_S_CTRL, &vid_control ) )
|
if ( vidioctl ( vid_fd, VIDIOC_S_CTRL, &vid_control ) )
|
||||||
{
|
{
|
||||||
|
@ -1243,7 +1243,7 @@ int LocalCamera::Brightness( int p_brightness )
|
||||||
else
|
else
|
||||||
Warning( "Given brightness value (%d) may be out-of-range", p_brightness )
|
Warning( "Given brightness value (%d) may be out-of-range", p_brightness )
|
||||||
}
|
}
|
||||||
Info( "Brightness 3 %d", vid_control.value );
|
//Info( "Brightness 3 %d", vid_control.value );
|
||||||
}
|
}
|
||||||
return( vid_control.value );
|
return( vid_control.value );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue