www.pudn.com > headset.rar > cmd.c


#include "demohs.h" 
 
#include  
 
#include  
 
/* 
    This function is called if we ever receive an AT command from the 
    Audio Gateway that we don't recognise.  At the moment this is just 
    a stub that prints the command and frees the memory. 
*/ 
 
void cmdInd(const HS_CMD_IND_T * ind) 
{ 
    uint16_t c ; 
    PRINT(("unrecognised cmd\n")); 
    for (c = 0 ; c  < ind->length ; c ++) 
        PRINT(("%x",ind->data[c])); 
    PRINT(("\n")); 
    for (c = 0 ; c  < ind->length ; c ++) 
        PRINT(("%c",ind->data[c])); 
    PRINT(("\n")); 
     
    free(ind->data) ; 
}