[PATCH] iface-modem: fix MODEM_STATE_IS_INTERMEDIATE macro
Aleksander Morgado
aleksander at lanedo.com
Tue Sep 17 23:40:44 PDT 2013
On 17/09/13 23:47, Ben Chan wrote:
> ---
> src/mm-iface-modem.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
WTF... thanks for noticing :) Pushed.
> 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;
>
--
Aleksander
More information about the ModemManager-devel
mailing list