gsmd: change TE character set to UCS2 (olv)
git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@4159 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
5d459abf66
commit
ca7a544737
|
@ -638,7 +638,7 @@ struct gsmd_phonebook_readrg {
|
|||
/* Refer to GSM 07.07 subclause 8.14 */
|
||||
/* FIXME: the nlength and tlength depend on SIM, use +CPBR=? to get */
|
||||
#define GSMD_PB_NUMB_MAXLEN 44
|
||||
#define GSMD_PB_TEXT_MAXLEN 14
|
||||
#define GSMD_PB_TEXT_MAXLEN (14*4)
|
||||
struct gsmd_phonebook {
|
||||
int8_t index;
|
||||
char numb[GSMD_PB_NUMB_MAXLEN+1];
|
||||
|
|
|
@ -35,7 +35,7 @@ struct lgsm_phonebook_readrg {
|
|||
/* Refer to GSM 07.07 subclause 8.14 */
|
||||
/* FIXME: the nlength and tlength depend on SIM, use +CPBR=? to get */
|
||||
#define LGSM_PB_NUMB_MAXLEN 44
|
||||
#define LGSM_PB_TEXT_MAXLEN 14
|
||||
#define LGSM_PB_TEXT_MAXLEN (14*4)
|
||||
struct lgsm_phonebook {
|
||||
int index;
|
||||
char numb[LGSM_PB_NUMB_MAXLEN+1];
|
||||
|
|
|
@ -193,6 +193,7 @@ static int gsmd_initsettings2(struct gsmd *gsmd)
|
|||
atcmd_submit(gsmd, atcmd_fill("AT+CIMI", 7+1,
|
||||
&gsmd_get_imsi_cb, gsmd, 0, NULL));
|
||||
|
||||
rc |= gsmd_simplecmd(gsmd, "AT+CSCS=\"UCS2\"");
|
||||
|
||||
sms_cb_init(gsmd);
|
||||
|
||||
|
|
Loading…
Reference in New Issue