Reconnecting peripheral after restart