From 3193e97bb809d10367ece12e91245eeecca711b9 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 17 Nov 2009 14:16:24 -0800 Subject: probe: fix probing on PPC due to missing cast gcc will interpret the constant value as a uint32 but the port's set_property() was taking it as a uint64. Thus the top 32 bits were probably garbage, and messed up on big-endian architectures leading to random large probe delays. --- src/mm-plugin-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mm-plugin-base.c') diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c index 7455046f..540670aa 100644 --- a/src/mm-plugin-base.c +++ b/src/mm-plugin-base.c @@ -489,7 +489,7 @@ mm_plugin_base_probe_port (MMPluginBase *self, serial = mm_serial_port_new (name, MM_PORT_TYPE_PRIMARY); g_object_set (serial, - MM_SERIAL_PORT_SEND_DELAY, 100000, + MM_SERIAL_PORT_SEND_DELAY, (guint64) 100000, MM_PORT_CARRIER_DETECT, FALSE, NULL); -- cgit v1.2.3-70-g09d2