r1964 - in trunk/src/target/gsm: . src/gsmd

mickey at sita.openmoko.org mickey at sita.openmoko.org
Wed May 16 12:32:08 CEST 2007


Author: mickey
Date: 2007-05-16 12:32:07 +0200 (Wed, 16 May 2007)
New Revision: 1964

Added:
   trunk/src/target/gsm/ChangeLog
Modified:
   trunk/src/target/gsm/src/gsmd/gsmd.c
Log:
gsmd: power off the phone when gsmd starts up to have a consistent starting point


Added: trunk/src/target/gsm/ChangeLog
===================================================================
--- trunk/src/target/gsm/ChangeLog	2007-05-16 10:04:12 UTC (rev 1963)
+++ trunk/src/target/gsm/ChangeLog	2007-05-16 10:32:07 UTC (rev 1964)
@@ -0,0 +1,3 @@
+2007-05-16  Mickey Lauer <mickey at openmoko.org>
+
+* gsmd.c (gsmd_initsettings): always power off gsm to have a sane starting point

Modified: trunk/src/target/gsm/src/gsmd/gsmd.c
===================================================================
--- trunk/src/target/gsm/src/gsmd/gsmd.c	2007-05-16 10:04:12 UTC (rev 1963)
+++ trunk/src/target/gsm/src/gsmd/gsmd.c	2007-05-16 10:32:07 UTC (rev 1964)
@@ -76,8 +76,8 @@
 	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");





More information about the commitlog mailing list