mirror of git://git.sysmocom.de/ofono
ussd: Fix use of non-cloned gatchat object
This commit is contained in:
parent
b6a2586d84
commit
e40d6d708f
|
@ -316,10 +316,11 @@ static int at_ussd_probe(struct ofono_ussd *ussd, unsigned int vendor,
|
||||||
|
|
||||||
ofono_ussd_set_data(ussd, data);
|
ofono_ussd_set_data(ussd, data);
|
||||||
|
|
||||||
g_at_chat_send(chat, "AT+CSCS?", cscs_prefix, read_charset_cb, data,
|
g_at_chat_send(data->chat, "AT+CSCS?", cscs_prefix,
|
||||||
NULL);
|
read_charset_cb, data, NULL);
|
||||||
|
|
||||||
g_at_chat_send(chat, "AT+CUSD=1", NULL, at_ussd_register, ussd, NULL);
|
g_at_chat_send(data->chat, "AT+CUSD=1", NULL,
|
||||||
|
at_ussd_register, ussd, NULL);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue