Remember the dev type when detect the devices