port-probe: MMPortProbeAtCommand always has constant command strings

This commit is contained in:
Aleksander Morgado
2020-01-31 15:18:35 +01:00
parent accd1a5841
commit 9e24226364
7 changed files with 29 additions and 30 deletions
+3 -3
View File
@@ -41,9 +41,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
take longer to respond after a reset.
*/
static const MMPortProbeAtCommand custom_at_probe[] = {
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
{ (gchar *) "AT", 7, mm_port_probe_response_processor_is_at },
{ "AT", 7, mm_port_probe_response_processor_is_at },
{ "AT", 7, mm_port_probe_response_processor_is_at },
{ "AT", 7, mm_port_probe_response_processor_is_at },
{ NULL }
};
+3 -3
View File
@@ -33,9 +33,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
/* Custom commands for AT probing */
static const MMPortProbeAtCommand custom_at_probe[] = {
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};
+3 -3
View File
@@ -34,9 +34,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
/* Custom commands for AT probing */
static const MMPortProbeAtCommand custom_at_probe[] = {
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ "ATE1 E0", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};
+3 -3
View File
@@ -66,9 +66,9 @@ port_probe_response_processor_is_pantech_at (const gchar *command,
}
static const MMPortProbeAtCommand custom_at_probe[] = {
{ (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ (gchar *) "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ "ATE0", 3, port_probe_response_processor_is_pantech_at },
{ NULL }
};
+3 -3
View File
@@ -51,9 +51,9 @@ MM_PLUGIN_DEFINE_MINOR_VERSION
* We use this command also for checking AT support in the port.
*/
static const MMPortProbeAtCommand custom_at_probe[] = {
{ (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ (gchar *) "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ "ATE0+CPMS?", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};