fix infinite loop bug when HIGH-Z MISO stays high (take2)