You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
343 B
18 lines
343 B
#include <stdio.h>
|
|
|
|
#include "Debug.h"
|
|
|
|
/* Debug global which can be set via command line flag --debug */
|
|
bool debug = false;
|
|
|
|
void printHex(const unsigned char * const data, int length )
|
|
{
|
|
printf( "Length: %d bytes\n", length );
|
|
|
|
for( int x = 0; x < length; x++ )
|
|
{
|
|
printf( "%02X ", data[x] );
|
|
}
|
|
|
|
printf( "\n" );
|
|
} |