diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-11-08 17:56:18 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-15 14:14:20 +0100 |
commit | c112e19896921810fe469ef93a268f5431fad93d (patch) | |
tree | 74e0ae310899b1791b4f2041096b73af6846a8e0 /src | |
parent | 963eb873e10dd06b17363a08414c278d5e1ba7b3 (diff) |
port-probe: properly handle Core errors
Fixes compilation of the Port Probe object.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-port-probe.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c index 55a91954..94a85871 100644 --- a/src/mm-port-probe.c +++ b/src/mm-port-probe.c @@ -19,6 +19,10 @@ #include <stdlib.h> #include <string.h> +#include <ModemManager.h> + +#include <mm-errors-types.h> + #include "mm-port-probe.h" #include "mm-errors.h" #include "mm-log.h" @@ -238,7 +242,7 @@ serial_probe_qcdm (MMPortProbe *self) FALSE, FALSE, g_error_new (MM_CORE_ERROR, - MM_CORE_ERROR_INVALID, + MM_CORE_ERROR_FAILED, "(%s) Couldn't create QCDM port", self->priv->name)); return FALSE; @@ -631,7 +635,7 @@ serial_open_at (MMPortProbe *self) FALSE, FALSE, g_error_new (MM_CORE_ERROR, - MM_CORE_ERROR_INVALID, + MM_CORE_ERROR_FAILED, "(%s) couldn't create AT port", self->priv->name)); return FALSE; |