ublox: minor indentation fixes

This commit is contained in:
Aleksander Morgado
2018-12-24 15:13:15 +01:00
parent c1aa658802
commit bbb96cd3f9
3 changed files with 80 additions and 79 deletions

View File

@@ -119,7 +119,7 @@ load_supported_bands (MMIfaceModem *_self,
bands = mm_ublox_get_supported_bands (model, &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);
}
@@ -274,7 +274,7 @@ set_current_modes_bands_command_ready (MMBaseModem *self,
if (!mm_base_modem_at_command_finish (self, res, &ctx->saved_error))
ctx->step = SET_CURRENT_MODES_BANDS_STEP_RELEASE;
else
ctx->step++;
ctx->step++;
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) {
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
"+CFUN=4",
3,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_low_power_ready,
task);
return;
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
"+CFUN=4",
3,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_low_power_ready,
task);
return;
}
}
ctx->step++;
@@ -401,28 +401,28 @@ set_current_modes_bands_step (GTask *task)
else
command = g_strdup ("+COPS=0");
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
command,
10,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
task);
g_free (command);
return;
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
command,
10,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
task);
g_free (command);
return;
}
/* Use this to register if CFUN is needed */
if (ctx->self->priv->support_config.method == BAND_UPDATE_NEEDS_CFUN) {
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
"+CFUN=1",
3,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
task);
return;
}
mm_base_modem_at_command (
MM_BASE_MODEM (ctx->self),
"+CFUN=1",
3,
FALSE,
(GAsyncReadyCallback) set_current_modes_bands_recover_power_ready,
task);
return;
}
}
ctx->step++;
/* fall down */
@@ -487,7 +487,7 @@ set_current_bands (MMIfaceModem *_self,
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 */
if (self->priv->support_config.uact == FEATURE_SUPPORTED)

View File

@@ -35,9 +35,9 @@ typedef enum {
} UpdateMethod;
typedef struct UbloxSupportConfig {
UpdateMethod method;
FeatureSupport uact;
FeatureSupport ubandsel;
UpdateMethod method;
FeatureSupport uact;
FeatureSupport ubandsel;
} UbloxSupportConfig;
/*****************************************************************************/
@@ -104,6 +104,7 @@ GArray *mm_ublox_parse_urat_test_response (const gchar *response,
/*****************************************************************************/
/* Model-based config support loading */
gboolean mm_ublox_get_support_config (const gchar *model,
UbloxSupportConfig *config,
GError **error);