[FL-812] Fix emulation timings (#314)

* fix timings
* fix default vendor id to 0
This commit is contained in:
coreglitch 2021-01-29 02:45:32 +03:00 committed by GitHub
parent cf1c8fb223
commit fd5f694758
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -58,9 +58,9 @@ void em4100_emulation(uint8_t* data, GpioPin* pin) {
for(uint8_t i = 0; i < 8; i++) { for(uint8_t i = 0; i < 8; i++) {
for(uint8_t j = 0; j < 64; j++) { for(uint8_t j = 0; j < 64; j++) {
delay_us(270); delay_us(260);
gpio_write(pin, data[j]); gpio_write(pin, data[j]);
delay_us(270); delay_us(260);
gpio_write(pin, !data[j]); gpio_write(pin, !data[j]);
} }
} }

View File

@ -188,7 +188,7 @@ void lf_rfid_workaround(void* p) {
State _state; State _state;
_state.freq_khz = 125; _state.freq_khz = 125;
_state.on = false; _state.on = false;
_state.customer_id = 01; _state.customer_id = 00;
_state.em_data = 4378151; _state.em_data = 4378151;
_state.dirty = true; _state.dirty = true;