Some Usb code changes
Fixed charging/connection state for USB