Changeset 2578


Ignore:
Timestamp:
07/31/07 09:07:24 (6 years ago)
Author:
laforge
Message:

the latest gsmd sends the alive detector's ATE0 to the GSM modem, even
if interpreter_ready == 0. The attached patch sees to it that if
interpreter_ready is zero, gsmd_alive_start is only called once the
"AT-Command Interpreter ready" message was seen. (Philipp Zabel)

Location:
trunk/src/target/gsm/src/gsmd
Files:
2 edited

Legend:

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

    r2180 r2578  
    186186                g->interpreter_ready = 1; 
    187187                gsmd_initsettings(g); 
     188                gmsd_alive_start(g); 
    188189                return 0; 
    189190        } 
  • trunk/src/target/gsm/src/gsmd/gsmd.c

    r2576 r2578  
    129129} 
    130130 
    131 static int gmsd_alive_start(struct gsmd *gsmd) 
     131int gmsd_alive_start(struct gsmd *gsmd) 
    132132{ 
    133133        struct timeval tv; 
     
    473473        gsmd_vendor_plugin_find(&g); 
    474474 
    475         if (g.interpreter_ready) 
     475        if (g.interpreter_ready) { 
    476476                gsmd_initsettings(&g); 
    477477         
    478         gmsd_alive_start(&g); 
     478                gmsd_alive_start(&g); 
     479        } 
    479480 
    480481        gsmd_opname_init(&g); 
Note: See TracChangeset for help on using the changeset viewer.