diff options
author | Michal Čihař <nijel@debian.org> | 2017-10-18 10:25:29 +0200 |
---|---|---|
committer | Michal Čihař <nijel@debian.org> | 2017-10-18 10:25:29 +0200 |
commit | 1b4e1bec085a3a96d5683821a5f8875db8a45964 (patch) | |
tree | 1621cd0cb4fbbb567af9adb2516ee4c40ff9bbee /tests/at-ussd-reply.c | |
parent | 105250a08aeaef4c4690ac00d4f956d04bc3a9f5 (diff) | |
parent | aad5c0f31b8583d1de28434597fb81a2079434a0 (diff) |
Updated version 1.38.5 from 'upstream/1.38.5'
with Debian dir ec9e041589bbe58997654cc8ebb3f0cd170098ed
Diffstat (limited to 'tests/at-ussd-reply.c')
-rw-r--r-- | tests/at-ussd-reply.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/at-ussd-reply.c b/tests/at-ussd-reply.c index ee16dfb..590344a 100644 --- a/tests/at-ussd-reply.c +++ b/tests/at-ussd-reply.c @@ -35,8 +35,8 @@ int main(int argc, char **argv) GSM_Error error; /* Check parameters */ - if (argc != 3) { - printf("Not enough parameters!\nUsage: at-ussd-reply comm.dump MODEL\n"); + if (argc != 3 && argc != 4) { + printf("Not enough parameters!\nUsage: at-ussd-reply comm.dump MODEL [unicode]\n"); return 1; } @@ -78,7 +78,11 @@ int main(int argc, char **argv) Priv = &s->Phone.Data.Priv.ATGEN; Priv->ReplyState = AT_Reply_OK; Priv->SMSMode = SMS_AT_PDU; - Priv->Charset = AT_CHARSET_GSM; + if (argv[3][0] == 'U') { + Priv->Charset = AT_CHARSET_UCS2; + } else { + Priv->Charset = AT_CHARSET_GSM; + } s->User.IncomingUSSD = IncomingUSSD; s->User.IncomingUSSDUserData = NULL; s->Phone.Data.EnableIncomingUSSD = TRUE; |