/* Get inquiry mode of the TEL0026 bluetooth module.  */
tBtResult BTInqModeGet(char *pBuf)
/* Get inquiry mode of the TEL0026 bluetooth module.  */
tBtResult BTInqModeGet(char *pBuf)
{
	unsigned char ucRes;
	*pBuf = 0;
	ClearRecBuf();
	s_cCmdBuffer[0] = 0;
	BTSendCmdString(BtCmdInqModeGet);
	if(!BTReadLine(s_cCmdBuffer))
	{
		return BT_ERR_NORESPONSE;
	}
	ucRes = BTErrorDecode(s_cCmdBuffer);
	if(!ucRes)
	{
		StrCat(pBuf, s_cCmdBuffer + 6);
	}
	return ucRes;
}