|
Re: const array - 'auto' compile error ?
This will not work:
Code:
rom const unsigned char L3[] = {000,001};
This will work:
Code:
rom const unsigned char L3[2] = {000,001};
You have to tell the compiler the size of the array in ROM data space.
Mike
__________________
Mike Betts
Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013
As easy as 355/113...
|