49016d6cd7
For the musb to recognized as online, the musbOnline value has to be set. The battery driver sets the online property of the sysfs as "3" when the charger type is USB. The way the current code is, if the value is not 1, musbOnline would be false and the menu to mount the sdcard on the pc would not pop-up. Since the linux driver returns 0 if the cable is not connected, and 3 if the cable is connected, we should set the boolean variable to 0 only if the sysfs value is 0, otherwise we set it to true. Change-Id: I538d8de446e7ea4f620ffcce156a57cf56b5a4e5 Signed-off-by: Axel Haslam <axelhaslam@ti.com>