cmd.c
来自「蓝牙HANDFREE软件源代码」· C语言 代码 · 共 30 行
C
30 行
#include "handsfree_private.h"
#include "handsfree.h"
#include <print.h>
#include <stdlib.h>
/*
hfCmdInd
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 hfCmdInd(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"));
if (ind->length)
free(ind->data);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?