mirror of git://git.sysmocom.de/ofono
ifxmodem: fix xtms read and test cmd prefix
with the latest modem firmware, xctms prefix is returned as per the 3GPP format.
This commit is contained in:
parent
4b22a77449
commit
8453b2680e
|
@ -41,7 +41,7 @@
|
|||
#include "ifxmodem.h"
|
||||
|
||||
static const char *none_prefix[] = { NULL };
|
||||
static const char *xctms_prefix[] = { "XCTMS:", NULL };
|
||||
static const char *xctms_prefix[] = { "+XCTMS:", NULL };
|
||||
|
||||
struct ctm_data {
|
||||
GAtChat *chat;
|
||||
|
@ -65,7 +65,7 @@ static void xctms_query_cb(gboolean ok, GAtResult *result, gpointer user_data)
|
|||
|
||||
g_at_result_iter_init(&iter, result);
|
||||
|
||||
if (g_at_result_iter_next(&iter, "XCTMS:") == FALSE)
|
||||
if (g_at_result_iter_next(&iter, "+XCTMS:") == FALSE)
|
||||
goto error;
|
||||
|
||||
if (g_at_result_iter_next_number(&iter, &value) == FALSE)
|
||||
|
|
Loading…
Reference in New Issue