Skip to content

Commit

Permalink
Check for the right value before trying to write it to sysfs
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 Oct 10, 2013
1 parent fdbf67b commit ffda794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usb_moded-modesetting.c
Expand Up @@ -418,7 +418,7 @@ void unset_dynamic_mode(void)
}

/* disconnect before changing functionality */
if(data->softconnect)
if(data->softconnect_disconnect)
{
write_to_file(data->softconnect_path, data->softconnect_disconnect);
}
Expand Down

0 comments on commit ffda794

Please sign in to comment.