I had the sequence all wrong.
Signed-off-by: NeilBrown <neil@brown.name>
self.queue = []
self.async_pending = None
self.pending_command = None
- gpio_set(186, 0)
- self.atcmd("$QCPWRDN")
self.close()
+ gpio_set(186, 0)
+ time.sleep(0.1)
+ gpio_set(186,1)
+ time.sleep(0.5)
+ gpio_set(186,0)
time.sleep(2);
Popen("rmmod ehci_hcd", shell=True).wait();
def open(self):
sleep_time=0.4
self.block()
- gpio_set(186, 1)
+ gpio_set(186, 0)
self.close()
self.timedout()
while not self.connected:
print "will now reboot"
sys.stdout.flush()
Popen("/sbin/reboot -f", shell=True).wait()
- gpio_set(186, 0)
Popen('rmmod ehci_omap; rmmod ehci-hcd; modprobe ehci-hcd; modprobe ehci_omap', shell=True).wait()
time.sleep(1)
gpio_set(186, 1)
+ time.sleep(0.5)
+ gpio_set(186, 0)
time.sleep(1)
l = self.wait_line(100)
while l != None: