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.
This commit is contained in:
Dan Williams
2009-11-17 14:16:24 -08:00
parent 74f679acdb
commit 3193e97bb8

View File

@@ -489,7 +489,7 @@ mm_plugin_base_probe_port (MMPluginBase *self,
serial = mm_serial_port_new (name, MM_PORT_TYPE_PRIMARY); serial = mm_serial_port_new (name, MM_PORT_TYPE_PRIMARY);
g_object_set (serial, g_object_set (serial,
MM_SERIAL_PORT_SEND_DELAY, 100000, MM_SERIAL_PORT_SEND_DELAY, (guint64) 100000,
MM_PORT_CARRIER_DETECT, FALSE, MM_PORT_CARRIER_DETECT, FALSE,
NULL); NULL);