[PATCH] iface-modem: fix MODEM_STATE_IS_INTERMEDIATE macro
Ben Chan
benchan at chromium.org
Tue Sep 17 14:47:09 PDT 2013
---
src/mm-iface-modem.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 748a720..02b03db 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -80,12 +80,12 @@ mm_iface_modem_bind_simple_status (MMIfaceModem *self,
/*****************************************************************************/
/* Helper method to wait for a final state */
-#define MODEM_STATE_IS_INTERMEDIATE(state) \
- (state == MM_MODEM_STATE_INITIALIZING || \
- state == MM_MODEM_STATE_INITIALIZING || \
- state == MM_MODEM_STATE_INITIALIZING || \
- state == MM_MODEM_STATE_INITIALIZING || \
- state == MM_MODEM_STATE_INITIALIZING)
+#define MODEM_STATE_IS_INTERMEDIATE(state) \
+ (state == MM_MODEM_STATE_INITIALIZING || \
+ state == MM_MODEM_STATE_DISABLING || \
+ state == MM_MODEM_STATE_ENABLING || \
+ state == MM_MODEM_STATE_DISCONNECTING || \
+ state == MM_MODEM_STATE_CONNECTING)
typedef struct {
MMIfaceModem *self;
--
1.8.4
More information about the ModemManager-devel
mailing list