hitag: cosmetic

This commit is contained in:
Philippe Teuwen 2020-01-16 00:49:05 +01:00
parent 9df6fa8e8e
commit f2eec56fb7

View file

@ -315,12 +315,12 @@ static uint32_t hitag_reader_send_bit(int bit) {
if (bit == 0) { if (bit == 0) {
// Zero bit: |_-| // Zero bit: |_-|
lf_wait_periods(12); // wait for 18-22 times the carrier period lf_wait_periods(20-8); // wait for 18-22 times the carrier period
wait += 12; wait += 20-8;
} else { } else {
// One bit: |_--| // One bit: |_--|
lf_wait_periods(22); // wait for 26-32 times the carrier period lf_wait_periods(30-8); // wait for 26-32 times the carrier period
wait += 22; wait += 30-8;
} }
/*lf_wait_periods(10);*/ /*lf_wait_periods(10);*/
LED_A_OFF(); LED_A_OFF();
@ -343,8 +343,8 @@ static uint32_t hitag_reader_send_frame(const uint8_t *frame, size_t frame_len)
lf_modulation(false); lf_modulation(false);
// t_stop, high field for stop condition (> 36) // t_stop, high field for stop condition (> 36)
lf_wait_periods(28); lf_wait_periods(36-8);
wait += 28; wait += 36-8;
return wait; return wait;
} }