📄 cmd.c
字号:
#include "demohs.h"
#include <stdlib.h>
#include <print.h>
/*
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) ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -