Currently when I hit onPress then I toggle if it scan\'s for a Device or not, but i\'d like to have the Function that when i hit onPressed then it scan\'s for only the Time i se