ublox: minor indentation fixes
This commit is contained in:
@@ -119,7 +119,7 @@ load_supported_bands (MMIfaceModem *_self,
|
|||||||
bands = mm_ublox_get_supported_bands (model, &error);
|
bands = mm_ublox_get_supported_bands (model, &error);
|
||||||
|
|
||||||
if (!mm_ublox_get_support_config (model, &self->priv->support_config, &error)) {
|
if (!mm_ublox_get_support_config (model, &self->priv->support_config, &error)) {
|
||||||
g_assert (error);
|
g_assert (error);
|
||||||
g_task_return_error (task, error);
|
g_task_return_error (task, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,7 +274,7 @@ set_current_modes_bands_command_ready (MMBaseModem *self,
|
|||||||
if (!mm_base_modem_at_command_finish (self, res, &ctx->saved_error))
|
if (!mm_base_modem_at_command_finish (self, res, &ctx->saved_error))
|
||||||
ctx->step = SET_CURRENT_MODES_BANDS_STEP_RELEASE;
|
ctx->step = SET_CURRENT_MODES_BANDS_STEP_RELEASE;
|
||||||
else
|
else
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
|
|
||||||
set_current_modes_bands_step (task);
|
set_current_modes_bands_step (task);
|
||||||
}
|
}
|
||||||
@@ -365,14 +365,14 @@ set_current_modes_bands_step (GTask *task)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (ctx->self->priv->support_config.method == BAND_UPDATE_NEEDS_CFUN) {
|
if (ctx->self->priv->support_config.method == BAND_UPDATE_NEEDS_CFUN) {
|
||||||
mm_base_modem_at_command (
|
mm_base_modem_at_command (
|
||||||
MM_BASE_MODEM (ctx->self),
|
MM_BASE_MODEM (ctx->self),
|
||||||
"+CFUN=4",
|
"+CFUN=4",
|
||||||
3,
|
3,
|
||||||
FALSE,
|
FALSE,
|
||||||
(GAsyncReadyCallback) set_current_modes_bands_low_power_ready,
|
(GAsyncReadyCallback) set_current_modes_bands_low_power_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
@@ -401,28 +401,28 @@ set_current_modes_bands_step (GTask *task)
|
|||||||
else
|
else
|
||||||
command = g_strdup ("+COPS=0");
|
command = g_strdup ("+COPS=0");
|
||||||
|
|
||||||
mm_base_modem_at_command (
|
mm_base_modem_at_command (
|
||||||
MM_BASE_MODEM (ctx->self),
|
MM_BASE_MODEM (ctx->self),
|
||||||
command,
|
command,
|
||||||
10,
|
10,
|
||||||
FALSE,
|
FALSE,
|
||||||
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
|
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
|
||||||
task);
|
task);
|
||||||
g_free (command);
|
g_free (command);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Use this to register if CFUN is needed */
|
/* Use this to register if CFUN is needed */
|
||||||
if (ctx->self->priv->support_config.method == BAND_UPDATE_NEEDS_CFUN) {
|
if (ctx->self->priv->support_config.method == BAND_UPDATE_NEEDS_CFUN) {
|
||||||
mm_base_modem_at_command (
|
mm_base_modem_at_command (
|
||||||
MM_BASE_MODEM (ctx->self),
|
MM_BASE_MODEM (ctx->self),
|
||||||
"+CFUN=1",
|
"+CFUN=1",
|
||||||
3,
|
3,
|
||||||
FALSE,
|
FALSE,
|
||||||
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
|
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
|
||||||
task);
|
task);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ctx->step++;
|
ctx->step++;
|
||||||
/* fall down */
|
/* fall down */
|
||||||
@@ -487,7 +487,7 @@ set_current_bands (MMIfaceModem *_self,
|
|||||||
|
|
||||||
task = g_task_new (self, NULL, callback, user_data);
|
task = g_task_new (self, NULL, callback, user_data);
|
||||||
|
|
||||||
model = mm_iface_modem_get_model(_self);
|
model = mm_iface_modem_get_model (_self);
|
||||||
|
|
||||||
/* Build command */
|
/* Build command */
|
||||||
if (self->priv->support_config.uact == FEATURE_SUPPORTED)
|
if (self->priv->support_config.uact == FEATURE_SUPPORTED)
|
||||||
|
@@ -35,9 +35,9 @@ typedef enum {
|
|||||||
} UpdateMethod;
|
} UpdateMethod;
|
||||||
|
|
||||||
typedef struct UbloxSupportConfig {
|
typedef struct UbloxSupportConfig {
|
||||||
UpdateMethod method;
|
UpdateMethod method;
|
||||||
FeatureSupport uact;
|
FeatureSupport uact;
|
||||||
FeatureSupport ubandsel;
|
FeatureSupport ubandsel;
|
||||||
} UbloxSupportConfig;
|
} UbloxSupportConfig;
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
@@ -104,6 +104,7 @@ GArray *mm_ublox_parse_urat_test_response (const gchar *response,
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
/* Model-based config support loading */
|
/* Model-based config support loading */
|
||||||
|
|
||||||
gboolean mm_ublox_get_support_config (const gchar *model,
|
gboolean mm_ublox_get_support_config (const gchar *model,
|
||||||
UbloxSupportConfig *config,
|
UbloxSupportConfig *config,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
Reference in New Issue
Block a user