So, I have an inexplicable issue reading an array. I have a bit of code that is
Uint16 y0,y1;
const Uint16 Imot[7][7] =
{{ 0, 0, 333, 667, 1000, 1333, 1667},
{ 0, 119, 119, 119, 121, 118, 446},
{ 20, 593, 593, 593, 607, 591, 2231},
{ 40, 879, 879, 883, 906, 1160, 2231},
{ 60, 1124, 1124, 1129, 1151, 2008, 2231},
{ 80, 1365, 1365, 1374, 1419, 2008, 2231},
{100, 1615, 1615, 1629, 1691, 2008, 2231}};
y0 = Imot[1][0];
y1 = Imot[2][0];
expecting to get y0 = 0, y1 = 20. CCS 3.3 watch window gets the correct values, a memory view holds the correct values but I read the wrong values into y0 and y1!
Any suggestions would be appreciated!