gsm: ignore errors from power-on command

Phones especially don't seem to consistently implement this.  For now,
we'll hack it out, but later, we'll want to have a class method for
power-on instead of just a property so that subclasses can decided for
themselves (since they know their hardware better) whether failure
of the power-on command is fatal or not.
This commit is contained in:
Dan Williams
2009-10-26 15:39:34 -07:00
parent 6bc4f0ae8c
commit 2887a50b23
+8 -3
View File
@@ -332,9 +332,14 @@ enable_done (MMSerialPort *port,
{
MMCallbackInfo *info = (MMCallbackInfo *) user_data;
if (error)
info->error = g_error_copy (error);
/* Ignore power-up command errors, not all devices actually support
* CFUN=1.
*/
/* FIXME: instead of just ignoring errors, since we allow subclasses
* to override the power-on command, make a class function for powering
* on the phone and let the subclass decided whether it wants to handle
* errors or ignore them.
*/
mm_callback_info_schedule (info);
}