Skip to content

Commit

Permalink
Fix online state check
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Dec 13, 2013
1 parent e9768b8 commit fce2e9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/usb_moded-network.c
Expand Up @@ -282,9 +282,9 @@ static int connman_fill_connection_data(DBusMessage *reply, struct ipforward_dat
if(type == DBUS_TYPE_STRING)
{
dbus_message_iter_get_basic(&variant_iter, &string);
//log_debug("Connection state = %s\n", string);
log_debug("Connection state = %s\n", string);
/* if cellular not online, connect it */
if(!strcmp(string, "online"))
if(strcmp(string, "online"))
{
log_debug("Not online. Turning on cellular data connection.\n");
return(1);
Expand Down

0 comments on commit fce2e9a

Please sign in to comment.