Code: Alles auswählen
reply[0] = 0x9F;
reply[1] = 0x80;
reply[2] = 0x31;
reply[3] = caid_count << 1;
for (i = 0; i < caid_count; i++)
{
reply[i + 4] = caid[i] >> 8;
reply[i + 5] = caid[i];
}
Statt
Code: Alles auswählen
reply[i + 4] = caid[i] >> 8;
reply[i + 5] = caid[i];
Code: Alles auswählen
reply[i * 2 + 4] = caid[i] >> 8;
reply[i * 2 + 5] = caid[i];
Code: Alles auswählen
reply[(i << 1) + 4] = caid[i] >> 8;
reply[(i << 1) + 5] = caid[i];
Viele Gruesse!