aboutsummaryrefslogtreecommitdiff
path: root/src/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modem.c b/src/modem.c
index d8b09fc..f3c6594 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -86,7 +86,7 @@ int modem_command(int fd, char* cmd, int timeout_ms)
write(fd, cmd, strlen(cmd) );
- int ok = 1;
+ int ok = 1; //Return value of function
while(1) {
ret = poll(&fds, 1, timeout_ms);
usleep(5000); //Wait for data to fully come in
@@ -98,7 +98,6 @@ int modem_command(int fd, char* cmd, int timeout_ms)
if(cnt >= buffsize)
break;
-
if( strstr(buff, "OK") ) {
ok = 0;
break;