From: Roger B. <ro...@ro...> - 2003-12-14 03:47:18
|
> If I put "save.close()" as the last line of my savephone method, then > the phone gets assign ttyACM0 when it reboots. (Or maybe I was lucky). > Is it OK to do this close at this point? I don't think it will work, as the rest of the code won't attempt to reopen a closed port. To get the desired effect you should really be calling WorkerThread.clearcomm. I think the best way of dealing with this inspired by http. In the dictionary you return, the following two keys can be added: 'connection': value can be 'close' and WorkerThread will close it for you 'reboot': value can be True or False. If True, then the phone will be rebooted. In the future this could be controlled by the gui (ie auto-reboot when needed, or let the user do it) If that sounds ok, I will implement it at some point. Roger |