[asterisk-addons-commits] mnicholson: branch mnicholson/chan-mobile-refactor r800 - /team/mnicholson/ch...
SVN commits to the Asterisk addons project
asterisk-addons-commits at lists.digium.com
Wed Mar 4 12:45:49 CST 2009
Author: mnicholson
Date: Wed Mar 4 12:45:46 2009
New Revision: 800
URL: http://svn.digium.com/svn-view/asterisk-addons?view=rev&rev=800
Log:
replaced AT_DISCONNECT with AT_READ_ERROR and AT_PARSE_ERROR
Modified:
team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
Modified: team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c
URL: http://svn.digium.com/svn-view/asterisk-addons/team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c?view=diff&rev=800&r1=799&r2=800
==============================================================================
--- team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c (original)
+++ team/mnicholson/chan-mobile-refactor/channels/chan_mobile.c Wed Mar 4 12:45:46 2009
@@ -388,7 +388,8 @@
* Hayes AT command helpers
*/
typedef enum {
- AT_DISCONNECT = -1,
+ AT_PARSE_ERROR = -2,
+ AT_READ_ERROR = -1,
AT_UNKNOWN = 0,
AT_OK,
AT_ERROR,
@@ -1636,7 +1637,7 @@
{
ssize_t s;
if ((s = rfcomm_read(rsock, buf, count - 1)) < 1)
- return AT_DISCONNECT;
+ return s;
buf[s] = '\0';
if (!strcmp("OK", buf)) {
More information about the asterisk-addons-commits
mailing list