| ??? 08/23/08 13:22 Read: times |
#157687 - Oops Responding to: ???'s previous message |
Per said:
unsigned char next[6] = {0x02,0x04,0x08,0x10,0x20,0x01};
unsigned char n = 0x01;
for (;;) {
if (pressed) break;
n = next[n];
}This looks like a bad implementation of a good idea. What happens when 'n' is 0x08, or 0x10, or 0x20? -- Russ |



