On Sat, Feb 14, 2009 at 05:13:14PM -0500, Josh Kropf wrote: > I am working on implementing the device reset routine and I have a > question regarding the best place to put this. > > After the GOODBYE command is sent in JavaLoader::StopStream() the > response code needs to be checked for 0x78. At this point several > packets need to be sent using SocketZero class. Where is the most > appropriate spot to build this into the API?
If the commands only work when you're in JavaLoader mode, put it in the JavaLoader class. If, in what I guess to be the more likely scenario, you can use these packets at any time to reset the device, without even opening one of the "modes", put it in the SocketZero class, and call it conditionally on 0x78 in JavaLoader. I suspect that's the best way to organize it. - Chris ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Barry-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/barry-devel
