wait for device to be readable