Changeset 2744
- Timestamp:
- 08/19/07 23:03:58 (6 years ago)
- Location:
- trunk/src/target/gsm
- Files:
-
- 1 added
- 1 edited
-
ChangeLog (added)
-
src/gsmd/gsmd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/target/gsm/src/gsmd/gsmd.c
r2742 r2744 144 144 return -1; 145 145 146 gsmd_modem_alive(gsmd);147 148 146 return 0; 149 147 } … … 209 207 if (strcmp(resp, "OK") && 210 208 (!(gsmd->flags & GSMD_FLAG_V0) || resp[0] != '0')) { 211 gsmd_log(GSMD_FATAL, "response '%s' to initial command invalid", resp); 212 exit(5); 209 // temporarily changed to GSMD_ERROR instead of GSMD_FATAL + commented out exit(4) :M: 210 gsmd_log(GSMD_ERROR, "response '%s' to initial command invalid", resp); 211 //exit(4); 213 212 } 214 213 … … 242 241 struct timeval tv; 243 242 244 cmd = atcmd_fill("AT ", strlen("AT")+1, &firstcmd_atcb, gsmd, 0);243 cmd = atcmd_fill("ATZ", strlen("ATZ")+1, &firstcmd_atcb, gsmd, 0); 245 244 if (!cmd) 246 245 return -ENOMEM; 247 248 tv.tv_sec = GSMD_ALIVE_TIMEOUT;249 tv.tv_usec = 0;250 gsmd_timer_create(&tv, &firstcmd_tmr_cb, NULL);251 246 252 247 return atcmd_submit(gsmd, cmd);
Note: See TracChangeset
for help on using the changeset viewer.
