Changeset 2742


Ignore:
Timestamp:
08/19/07 22:20:54 (6 years ago)
Author:
mickey
Message:

gsmd: also allow ERROR as answer for the alive timer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/gsm/src/gsmd/gsmd.c

    r2738 r2742  
    5353static int daemonize = 0; 
    5454 
    55 /* alive checking */ 
     55/* alive checking 
     56 * either OK or ERROR is allowed since, both mean the modem still responds 
     57 */ 
     58 
    5659 
    5760struct gsmd_alive_priv { 
     
    6467        struct gsmd_alive_priv *alp = ctx; 
    6568 
    66         if (!strcmp(resp, "OK") || 
     69        if (!strcmp(resp, "OK") || !strcmp(resp, "ERROR") || 
    6770            ((alp->gsmd->flags & GSMD_FLAG_V0) && resp[0] == '0')) 
    6871                alp->alive_responded = 1; 
Note: See TracChangeset for help on using the changeset viewer.