This commit is contained in:
iceman1001 2021-01-29 12:04:19 +01:00
parent dc01b63d49
commit 249d3e7d1e
2 changed files with 8 additions and 0 deletions

View file

@ -121,6 +121,12 @@ bool set_nonlinear_field(wiegand_message_t *data, uint64_t value, uint8_t numBit
}
static uint8_t get_length_from_header(wiegand_message_t *data) {
/**
* detect if message has "preamble" / "sentinel bit"
*
*/
uint8_t len = 0;
uint32_t hfmt = 0; // for calculating card length