hmm, So any comment as to why it might be happening to me? I am sure
there is something else that i am missing that affects this, but let
me give yout the exact code that i use, that is giving me incorrect
results so that you can help me more.
typedef struct regTblEntry {
int32_t x;
int32_t y;
}TblEntry;
TblEntry regTable[BEACONS_REQUIRED];
for (i=0; i< BEACONS_REQUIRED; i++){
sumX += regTable[i].X;
sumY += regTable[i].Y;
printf( " %ld, %ld, \r\n ", regTable[i].X,regTable[i].Y);
}
At the end when I print the sumX and sumY values, the are incorrect.