From 25d5ef89ffc6dfa3eae3af33c335aa6bfec795a4 Mon Sep 17 00:00:00 2001 From: mickey Date: Wed, 16 May 2007 10:32:07 +0000 Subject: gsmd: power off the phone when gsmd starts up to have a consistent starting point git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@1964 99fdad57-331a-0410-800a-d7fa5415bdb3 --- ChangeLog | 3 +++ src/gsmd/gsmd.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 ChangeLog diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..914caf1 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,3 @@ +2007-05-16 Mickey Lauer + +* gsmd.c (gsmd_initsettings): always power off gsm to have a sane starting point diff --git a/src/gsmd/gsmd.c b/src/gsmd/gsmd.c index e2ecaa7..62eb2e0 100644 --- a/src/gsmd/gsmd.c +++ b/src/gsmd/gsmd.c @@ -76,8 +76,8 @@ int gsmd_initsettings(struct gsmd *gsmd) rc |= gsmd_simplecmd(gsmd, "AT+CLIP=1"); /* use +COLP: to indicate COLP */ rc |= gsmd_simplecmd(gsmd, "AT+COLP=1"); - /* power on the phone */ - rc |= gsmd_simplecmd(gsmd, "AT+CFUN=1"); + /* power off the phone */ + rc |= gsmd_simplecmd(gsmd, "AT+CFUN=0"); /* configure message format as PDU mode*/ /* FIXME: TEXT mode support!! */ rc |= gsmd_simplecmd(gsmd, "AT+CMGF=0"); -- cgit v1.2.3