diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2019-06-01 10:23:15 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2019-06-01 10:27:57 +0200 |
commit | c78ba5ea0ad37dcff4c2a5ca3b7bca21526eba08 (patch) | |
tree | 4df1649a98c0e7364c22dd8483ce41b498dd55cc /src | |
parent | 8ec9789e3c611f8156e0a95ce7b8306862b3030b (diff) |
build: allow unconditionally enabling Modem.Command() method
If ModemManager is being used in a custom system, make it easy to
unconditionally enable the Modem.Command() method, in case the modem
needs to be configured in some way that is not supported via standard
modem interfaces.
Diffstat (limited to 'src')
-rw-r--r-- | src/mm-iface-modem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c index 3f4c577b..17b3c295 100644 --- a/src/mm-iface-modem.c +++ b/src/mm-iface-modem.c @@ -753,6 +753,7 @@ handle_command_auth_ready (MMBaseModem *self, return; } +#if ! defined WITH_AT_COMMAND_VIA_DBUS /* If we are not in Debug mode, report an error */ if (!mm_context_get_debug ()) { g_dbus_method_invocation_return_error (ctx->invocation, @@ -763,6 +764,7 @@ handle_command_auth_ready (MMBaseModem *self, handle_command_context_free (ctx); return; } +#endif /* If command is not implemented, report an error */ if (!MM_IFACE_MODEM_GET_INTERFACE (self)->command || |