mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
maybe the return codes are wrong in legic sim now
This commit is contained in:
parent
7440e617e0
commit
d9f2d5287e
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ static bool wait_for(bool value, const uint32_t timeout) {
|
||||||
// - A bit length >80.2us is a 1
|
// - A bit length >80.2us is a 1
|
||||||
// - A bit length <80.2us is a 0
|
// - A bit length <80.2us is a 0
|
||||||
// - A bit length >148.6us is a code violation
|
// - A bit length >148.6us is a code violation
|
||||||
static int8_t rx_bit(void) {
|
static int32_t rx_bit(void) {
|
||||||
// backup ts for threshold calculation
|
// backup ts for threshold calculation
|
||||||
uint32_t bit_start = last_frame_end;
|
uint32_t bit_start = last_frame_end;
|
||||||
|
|
||||||
|
@ -246,7 +246,7 @@ static int32_t rx_frame(uint8_t *len) {
|
||||||
for (*len = 0; true; ++(*len)) {
|
for (*len = 0; true; ++(*len)) {
|
||||||
// receive next bit
|
// receive next bit
|
||||||
LED_B_ON();
|
LED_B_ON();
|
||||||
int8_t bit = rx_bit();
|
int32_t bit = rx_bit();
|
||||||
LED_B_OFF();
|
LED_B_OFF();
|
||||||
|
|
||||||
// check for code violation and to short / long frame
|
// check for code violation and to short / long frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue