summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormickey <mickey@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-05-16 10:32:07 +0000
committermickey <mickey@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-05-16 10:32:07 +0000
commit25d5ef89ffc6dfa3eae3af33c335aa6bfec795a4 (patch)
tree2b31d322fcce9175ed0a1618f8aefc6c2fe58a8d /src
parent4a965b6b43225b0b4cd4f258a31e2d3db85f4193 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/gsmd/gsmd.c4
1 files changed, 2 insertions, 2 deletions
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");
personal git repositories of Harald Welte. Your mileage may vary