Properly switch between file and sd printing