WaitTicks( TAG_FRAME_WAIT );
for (; mask < BITMASK(bits); mask <<= 1) {
- if (send & mask)
+ if (response & mask)
OPEN_COIL;
else
SHORT_COIL;
uint32_t cmd_sz = addr_sz+1+8+4; //crc+data+cmd
- legic_prng_forward(2); /* we wait anyways */
+ legic_prng_forward(2);
WaitTicks(330);
int t, old_level = 0, edges = 0;
int next_bit_at = 0;
- WaitUS(TAG_FRAME_WAIT);
+ WaitTicks(TAG_FRAME_WAIT);
for( t = 0; t < 80; ++t) {
edges = 0;