def on_wait_for_serial( instance ): log.info( "Updating CHIP firmware and pushing to CHIP" ) if wait_for_usb("serial-gadget", timeout=60): log.info( "Found" ) return "verify" else: return "failure"
def on_wait_for_serial(instance): log.info("Updating CHIP firmware and pushing to CHIP") if wait_for_usb("serial-gadget", timeout=60): log.info("Found") return "verify" else: return "failure"
def on_wait_for_fel( instance ): log.info( "Waiting for FEL device to be found..." ) if wait_for_usb("fel", timeout=5): return "upload" else: return "failure"
def on_wait_for_fel(instance): log.info("Waiting for FEL device to be found...") if wait_for_usb("fel", timeout=5): return "upload" else: return "failure"