pleiser
Senior Member
When you use @ptrinc in a select case statement I found that the pointer is incremented on each case rather than at the beginning of the select only. for example:
the sertxd transmits 4 instead of the expected 1. I can't imagine a scenario where you would want this behavior.
a simple solution is to instead increment the ptr after (or in) the select case statement
however this is inefficient and ugly compared to the above method.
~Patrick
P.S. for those interested I have a new electronics website with details about some of my PICAXE projects at patronics.weebly.com
Code:
select case @ptrinc
case 10
case 20
case 30
case 40
endselect
sertxd(#ptr)
a simple solution is to instead increment the ptr after (or in) the select case statement
however this is inefficient and ugly compared to the above method.
~Patrick
P.S. for those interested I have a new electronics website with details about some of my PICAXE projects at patronics.weebly.com