Skip to contentSkip to conversation

Fixed modem options to work with capitalized variable names in modem.conf

PATCH In review Ryan M. Raasch 2 participants 2 messages Nov 11, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fixed modem options to work with capitalized variable names in modem.conf

Hello,

This patch fixes the calypso driver when setting the modemconf variables.

Regards,
Ryan

---
 plugins/calypso.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
plugins/calypso.c +7 -7
index eba55dd..ddbec73 100644
@@ -272,13 +272,13 @@ static void modem_initialize(struct ofono_modem *modem)
 	if (options == NULL)
 		goto error;
 
-	g_hash_table_insert(options, "baud", "115200");
-	g_hash_table_insert(options, "parity", "none");
-	g_hash_table_insert(options, "stopbits", "1");
-	g_hash_table_insert(options, "databits", "8");
-	g_hash_table_insert(options, "xonxoff", "on");
-	g_hash_table_insert(options, "local", "on");
-	g_hash_table_insert(options, "rtscts", "on");
+	g_hash_table_insert(options, "Baud", "115200");
+	g_hash_table_insert(options, "Parity", "none");
+	g_hash_table_insert(options, "StopBits", "1");
+	g_hash_table_insert(options, "DataBits", "8");
+	g_hash_table_insert(options, "XonXoff", "on");
+	g_hash_table_insert(options, "Local", "on");
+	g_hash_table_insert(options, "RtsCts", "on");
 
 	io = g_at_tty_open(device, options);
 	g_hash_table_destroy(options);
Signature · 1 line
1.6.4.GIT
#1 lore raw

Hi Ryan,

Quoted 3 lines

Hello,

This patch fixes the calypso driver when setting the modemconf variables.

Patch has been applied. Thanks.

Regards,
-Denis