novatel: fix checking ERI for roaming/home decision
This is a port to git master of the following commit:
commit c21e29c50b5661308fb3b223c05f6942c06dc15d
Author: Dan Williams <dcbw@redhat.com>
Date: Fri Aug 24 13:31:04 2012 -0500
novatel: fix checking ERI for roaming/home decision
More fallout from b22b2d99db
which changed the return type of the qcdm_result_get_*() functions.
This commit is contained in:
@@ -611,7 +611,7 @@ parse_modem_snapshot (DetailedRegistrationStateContext *ctx,
|
||||
guint8 eri = 0;
|
||||
|
||||
/* Roaming? */
|
||||
if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri)) {
|
||||
if (qcdm_result_get_u8 (result, QCDM_CMD_NW_SUBSYS_MODEM_SNAPSHOT_CDMA_ITEM_ERI, &eri) == 0) {
|
||||
gchar *str;
|
||||
gboolean roaming = FALSE;
|
||||
|
||||
|
Reference in New Issue
Block a user