modified set_port_current to only run on new attach or after CHANGE in battery level
extended autoreset length
removed first_attach priority - now port b gets priority when 2 attached