Correct setting the comm type and re-initialize device