printf("0%0x\n", weight[pointer-1]);
Type: Posts; User: itCbitC
printf("0%0x\n", weight[pointer-1]);
The data read from the port maybe different each time but the code prints the location of weight over and over again, as in
printf("0%0x\n", weight);