ZX24 Persistant Variables

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
mdown
Posts: 62
Joined: 03 February 2006, 5:46 AM
Location: Dallas, Texas
Contact:

ZX24 Persistant Variables

Post by mdown »

I am trying to use persistant variables for the first time and defined 3 variables as specified in the manual, however the zbasic compiler barfs on the definitions. Whats wrong?

Code:

Code: Select all

Option Explicit
option signon off
option targetcpu zx24
option pin26 zxOutputHigh 'PhonePwr
option pin25 zxOutputLow  'StatLed
option pin9 zxInputPullup 'GSMRxPin
option pin5 zxInputPullup 'GPSRxPin
'option pin8 zxOutputHigh 'DTR

'NVRAM VARS

dim RunLevel as PersistantInteger
dim AlarmLevel as PersistantInteger
dim CallHomeInt as PersistantInteger
Compiler:

Code: Select all

STU v2_7_9 ZX.bas:12: Error: "PersistantInteger" is not a known type, structure or enumeration
STU v2_7_9 ZX.bas:13: Error: "PersistantInteger" is not a known type, structure or enumeration
STU v2_7_9 ZX.bas:14: Error: "PersistantInteger" is not a known type, structure or enumeration
3 errors.
>Exit code: 1
-Mike
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

Code: Select all

dim RunLevel as PersistantInteger

It' just a minor problem with spelling - PersistentInteger.
- Don Kinzer
mdown
Posts: 62
Joined: 03 February 2006, 5:46 AM
Location: Dallas, Texas
Contact:

Post by mdown »

Thats what happens when your sleepy.

-Mike
Post Reply