I've broken my code - running out of hair - please spot the obvious mistake
pacman
Posts: 327
I managed to break my code (it's a skill I have).
Basically I'm reading a string of serial data and doing stuff with it...
Towards the end of MAIN I call a debugging routine called PrintBuffer, then I call the CheckMessage routine. The very first step of CheckMessage is to call PrintBuffer again as somewhere beteen the printBuffer calls it gets screwey.
so in Psudeo code
Main
...
PrintBuffer(@InBuffer)
CheckMessage (@InBuffer)
CheckMessage (message)
PrintBuffer (@message)
How can the two strings from PrintBuffer be different?
Modbus_PAC.spin
Huge thanks in advance
Basically I'm reading a string of serial data and doing stuff with it...
Towards the end of MAIN I call a debugging routine called PrintBuffer, then I call the CheckMessage routine. The very first step of CheckMessage is to call PrintBuffer again as somewhere beteen the printBuffer calls it gets screwey.
so in Psudeo code
Main
...
PrintBuffer(@InBuffer)
CheckMessage (@InBuffer)
CheckMessage (message)
PrintBuffer (@message)
How can the two strings from PrintBuffer be different?
Modbus_PAC.spin
Huge thanks in advance
spin
201K
Comments
Seems just when I _think_ i've got a handle on string data - I make a mistake like this...