View previous topic :: View next topic |
Author |
Message |
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
#serialize (oh not again) |
Posted: Wed Mar 30, 2005 3:53 pm |
|
|
I've decided to give #serialize another try, but still can't get it to work. Wrote my code as follows:
Code: | unsigned int32 getUnitID() {
const unsigned int32 serialNumA = 200;
#serialize(id=serialNumA,next="200",prompt="Enter the serial number")
return serialNumA;
} |
When I program the device, I'm prompted correctly, but if I enter anything other than 0 I'm told, "ID code is too big for memory location."
???
--
Jeff S. |
|
|
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
|
Posted: Tue Apr 19, 2005 3:31 pm |
|
|
The answer!
From CCS Tech Support:
Quote: | The problem is the compiler expects the ID in a #serialize to be all upper case if #case is active. This will be fixed in the next release. Meanwhile make the identifier all uppercase everywhere you use it. |
By "next release" they seem to be referring to whatever will come after 3.223.
--
Jeff S. |
|
|
object01
Joined: 13 May 2004 Posts: 90 Location: Nashville, TN
|
|
Posted: Tue Apr 19, 2005 3:32 pm |
|
|
The answer!
From CCS Tech Support:
Quote: | The problem is the compiler expects the ID in a #serialize to be all upper case if #case is active. This will be fixed in the next release. Meanwhile make the identifier all uppercase everywhere you use it. |
By "next release" they seem to be referring to whatever will come after 3.223.
--
Jeff S. |
|
|
|