aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-07-30 23:49:11 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-20 16:26:55 +0200
commitb8e5dbcaf45aa34423e066e2af669f9c87af9f6f (patch)
tree9e3a8ac22ec2579712300d8c3879ca66ff1e51c6 /src
parent058fd0256de7e374660088387f291df63880cdb4 (diff)
novatel: flip secondary ports to AT mode during port setup
Diffstat (limited to 'src')
-rw-r--r--src/mm-base-modem-at.c17
-rw-r--r--src/mm-base-modem-at.h9
2 files changed, 26 insertions, 0 deletions
diff --git a/src/mm-base-modem-at.c b/src/mm-base-modem-at.c
index 04a350f9..657d1df2 100644
--- a/src/mm-base-modem-at.c
+++ b/src/mm-base-modem-at.c
@@ -397,6 +397,23 @@ mm_base_modem_response_processor_no_result_continue (MMBaseModem *self,
return FALSE;
}
+gboolean
+mm_base_modem_response_processor_continue_on_error (MMBaseModem *self,
+ gpointer none,
+ const gchar *command,
+ const gchar *response,
+ gboolean last_command,
+ const GError *error,
+ GVariant **result,
+ GError **result_error)
+{
+ if (error)
+ return FALSE;
+
+ *result = NULL;
+ return TRUE;
+}
+
/*****************************************************************************/
/* Single AT command handling */
diff --git a/src/mm-base-modem-at.h b/src/mm-base-modem-at.h
index fb98669d..a5d83bb3 100644
--- a/src/mm-base-modem-at.h
+++ b/src/mm-base-modem-at.h
@@ -120,6 +120,15 @@ gboolean mm_base_modem_response_processor_no_result_continue (MMBaseModem *self,
const GError *error,
GVariant **result,
GError **result_error);
+/* If error, continue sequence, otherwise finish it */
+gboolean mm_base_modem_response_processor_continue_on_error (MMBaseModem *self,
+ gpointer none,
+ const gchar *command,
+ const gchar *response,
+ gboolean last_command,
+ const GError *error,
+ GVariant **result,
+ GError **result_error);
/* Generic AT command handling, using the best AT port available and without
* explicit cancellations. */