Hi,
I've just tried to define two symbols by reading the contents of the eeprom but it's I guess associating the variable with the symbol not it's actual contents. My program crashes with this (b1 gets used as a variable elsewhere, which is why it crashes, the below statement works fine if I dont ever use b1 again)
eeprom 0,("##")
read 0,b1
symbol s1=b1
read 1,b1
symbol s2=b1
But it's fine if I do this
symbol s1="#"
symbol s2="#"
do I have to do something akin to (not that this works) or can't it be done?
read 0,b1
symbol s1=val(b1)
read 1,b1
symbol s2=val(b1)
Cheers
Miles
________
Yamaha YZ250F history
I've just tried to define two symbols by reading the contents of the eeprom but it's I guess associating the variable with the symbol not it's actual contents. My program crashes with this (b1 gets used as a variable elsewhere, which is why it crashes, the below statement works fine if I dont ever use b1 again)
eeprom 0,("##")
read 0,b1
symbol s1=b1
read 1,b1
symbol s2=b1
But it's fine if I do this
symbol s1="#"
symbol s2="#"
do I have to do something akin to (not that this works) or can't it be done?
read 0,b1
symbol s1=val(b1)
read 1,b1
symbol s2=val(b1)
Cheers
Miles
________
Yamaha YZ250F history
Last edited: