diff options
author | Andre Eisenbach <andre@broadcom.com> | 2012-09-18 01:35:44 -0700 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2012-09-18 10:06:32 -0700 |
commit | cc914cffd521b2e6e1be804c82aea2388b843ebf (patch) | |
tree | a4859572083eb29c931cc5066645f9c0a2929d71 /bta/ag/bta_ag_at.c | |
parent | 6ed67e2ac54c83d18701d2b4ee1b9d729e99a38c (diff) | |
download | external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.zip external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.gz external_bluetooth_bluedroid-cc914cffd521b2e6e1be804c82aea2388b843ebf.tar.bz2 |
Header file and whitespace cleanups
Also fixed file permission to remove executable bit
from source files.
Change-Id: I6954c2d16190bc35b1b0d38386543253696b1112
Diffstat (limited to 'bta/ag/bta_ag_at.c')
-rw-r--r-- | bta/ag/bta_ag_at.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bta/ag/bta_ag_at.c b/bta/ag/bta_ag_at.c index 4d3bcac..21609df 100644 --- a/bta/ag/bta_ag_at.c +++ b/bta/ag/bta_ag_at.c @@ -23,7 +23,7 @@ ** Function bta_ag_at_init ** ** Description Initialize the AT command parser control block. -** +** ** ** Returns void ** @@ -41,7 +41,7 @@ void bta_ag_at_init(tBTA_AG_AT_CB *p_cb) ** Description Re-initialize the AT command parser control block. This ** function resets the AT command parser state and frees ** any GKI buffer. -** +** ** ** Returns void ** @@ -62,7 +62,7 @@ void bta_ag_at_reinit(tBTA_AG_AT_CB *p_cb) ** Description Parse AT commands. This function will take the input ** character string and parse it for AT commands according to ** the AT command table passed in the control block. -** +** ** ** Returns void ** @@ -138,7 +138,7 @@ void bta_ag_process_at(tBTA_AG_AT_CB *p_cb) } else { - + (*p_cb->p_cmd_cback)(p_cb->p_user, idx, arg_type, p_arg, int_arg); } } @@ -167,7 +167,7 @@ void bta_ag_process_at(tBTA_AG_AT_CB *p_cb) ** Description Parse AT commands. This function will take the input ** character string and parse it for AT commands according to ** the AT command table passed in the control block. -** +** ** ** Returns void ** @@ -193,7 +193,7 @@ void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) i++; continue; } - + p_cb->p_cmd_buf[p_cb->cmd_pos] = p_buf[i++]; if ( p_cb->p_cmd_buf[p_cb->cmd_pos] == '\r' || p_cb->p_cmd_buf[p_cb->cmd_pos] == '\n') { @@ -209,8 +209,8 @@ void bta_ag_at_parse(tBTA_AG_AT_CB *p_cb, char *p_buf, UINT16 len) } p_cb->cmd_pos = 0; - - } + + } else if( p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1A || p_cb->p_cmd_buf[p_cb->cmd_pos] == 0x1B ) { p_cb->p_cmd_buf[++p_cb->cmd_pos] = 0; |