CHG: code clean up
This commit is contained in:
@@ -395,10 +395,9 @@ int legic_read_byte( uint16_t index, uint8_t cmd_sz) {
|
|||||||
uint8_t byte, crc, calcCrc = 0;
|
uint8_t byte, crc, calcCrc = 0;
|
||||||
uint32_t cmd = (index << 1) | LEGIC_READ;
|
uint32_t cmd = (index << 1) | LEGIC_READ;
|
||||||
|
|
||||||
//WaitTicks(330); // (4)
|
// 90ticks = 60us (should be 100us but crc calc takes time.)
|
||||||
WaitTicks(240); // (3)
|
//WaitTicks(330); // 330ticks prng(4) - works
|
||||||
//WaitTicks(230); //(2)
|
WaitTicks(240); // 240ticks prng(3) - works
|
||||||
//WaitTicks(60); //(1)
|
|
||||||
|
|
||||||
frame_sendAsReader(cmd, cmd_sz);
|
frame_sendAsReader(cmd, cmd_sz);
|
||||||
frame_receiveAsReader(¤t_frame, 12);
|
frame_receiveAsReader(¤t_frame, 12);
|
||||||
|
|||||||
Reference in New Issue
Block a user