Lost on what should be simple.
This is intended to read serial data from a cog (Scanner1), determine if two chatracters are equal or not equal and return the value to the parent. I am missing something here. This has been a scratch pad of tests so it has no real documentation. The end result, the child object will launch 3 times and the LCD will go away. Simply at a loss on this one after days of playing with it.
Comments
The Results method used lcd.str to print the value of dat1. You should use lcd.dec instead.
I think I have made all of the corrections mentioned. I am still not seeing the return value of 1 or 2. Any ideas?
Also, it may be advisable to increase the stack size slightly (32 longs). 10 looks a bit tight given that you call another object from your method. Other than that there is nothing wrong with the code, I fed 30 '?' characters into the method and it reports 1 as expected.