Better VERBOSE_DEBUG support, remove unneeded printfs.
This commit is contained in:
parent
1a6f7391ec
commit
997993d432
|
@ -121,15 +121,15 @@ void PrintHex( const char * prepend, const unsigned char * const data, int lengt
|
||||||
{
|
{
|
||||||
if( prepend )
|
if( prepend )
|
||||||
{
|
{
|
||||||
printf( "%s", prepend );
|
verbose_printf( "%s", prepend );
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int x = 0; x < length; x++ )
|
for( int x = 0; x < length; x++ )
|
||||||
{
|
{
|
||||||
printf( "%02X ", data[x] );
|
verbose_printf( "%02X ", data[x] );
|
||||||
}
|
}
|
||||||
|
|
||||||
printf( " (Length: %d bytes)\n", length );
|
verbose_printf( " (Length: %d bytes)\n", length );
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintInstructions( char * name )
|
void PrintInstructions( char * name )
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
#include "DVDEmu.h"
|
#include "DVDEmu.h"
|
||||||
#include "Video.h"
|
#include "Video.h"
|
||||||
|
|
||||||
|
/* Only works if VERBOSE_DEBUG is also enabled in DVDEmu.cpp */
|
||||||
#define PACKET_DEBUG 0
|
#define PACKET_DEBUG 0
|
||||||
|
|
||||||
#define PACKET_LEN 256
|
#define PACKET_LEN 256
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "Video.h"
|
#include "Video.h"
|
||||||
#include "DVDEmu.h"
|
#include "DVDEmu.h"
|
||||||
|
|
||||||
|
/* Only works if VERBOSE_DEBUG is active in DVDEmu.cpp */
|
||||||
#define PACKET_DEBUG 0
|
#define PACKET_DEBUG 0
|
||||||
|
|
||||||
/* Wait for serial */
|
/* Wait for serial */
|
||||||
|
|
|
@ -98,7 +98,6 @@ void *VideoThread( void *state )
|
||||||
{
|
{
|
||||||
if( private_state->pause_delay )
|
if( private_state->pause_delay )
|
||||||
{
|
{
|
||||||
printf("Sleeping %d ms!\n", private_state->pause_delay);
|
|
||||||
usleep( private_state->pause_delay * 1000 );
|
usleep( private_state->pause_delay * 1000 );
|
||||||
}
|
}
|
||||||
exec_shell("./control.sh pause 2> /dev/null");
|
exec_shell("./control.sh pause 2> /dev/null");
|
||||||
|
|
Loading…
Reference in New Issue