Update range checkings in all pack functions for LF HID

This commit is contained in:
Donny
2025-02-03 16:34:58 -08:00
parent 0d054c6319
commit ebd85fbc78
2 changed files with 93 additions and 196 deletions
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -45,7 +45,7 @@ typedef struct {
// Structure for defined Wiegand card formats available for packing/unpacking
typedef struct {
const char *Name;
bool (*Pack)(wiegand_card_t *card, wiegand_message_t *packed, bool preamble);
bool (*Pack)(int format_idx, wiegand_card_t *card, wiegand_message_t *packed, bool preamble);
bool (*Unpack)(wiegand_message_t *packed, wiegand_card_t *card);
const char *Descrp;
cardformatdescriptor_t Fields;