01-18-2013 03:10 PM
This is a case where if one way of thinking about your problem isn't helpful, come up with a new way.
Don't think about switching between devices. Think about one 8-bit dataspace that just happens to be split between two devices.
The basic flow from my last upload will still work, but because there are two devices involved, there are two tasks that need to be created, updated and cleared.
Try this...
Mike...
01-28-2013 10:45 AM - edited 01-28-2013 10:48 AM
@mikeporter wrote:
This is a case where if one way of thinking about your problem isn't helpful, come up with a new way.
Don't think about switching between devices. Think about one 8-bit dataspace that just happens to be split between two devices.
The basic flow from my last upload will still work, but because there are two devices involved, there are two tasks that need to be created, updated and cleared.
Try this...
Mike...
Thanks! It wasn't that I hadn't thought about the problem in that way, it was that I had no idea how to program it.
Earlier you had brought up the point about a race condition where the consumer loop wouldn't process the last item in the queue. Again, because I'm so new to this I don't know what to do to prevent this from happening.
suggestions?
01-28-2013 11:25 AM - edited 01-28-2013 11:28 AM
Never mind the other comment, brain fart - I was probing in the wrong place.
Mike...
PS: Feel free to drop some kudos when you see something you like...