Skip to content

Commit

Permalink
init structure with zeros
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Feb 21, 2023
1 parent 4807fae commit b86e29f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions client/src/cmdlfhid.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ static int sendTry(uint8_t format_idx, wiegand_card_t *card, uint32_t delay, boo
);
}

lf_hidsim_t payload;
payload.Q5 = false;
payload.hi2 = packed.Top;
payload.hi = packed.Mid;
payload.lo = packed.Bot;
payload.longFMT = (packed.Mid > 0xFFF);
lf_hidsim_t payload = {
.EM = false,
.Q5 = false,
.hi2 = packed.Top,
.hi = packed.Mid,
.lo = packed.Bot,
.longFMT = (packed.Mid > 0xFFF)
};

clearCommandBuffer();

Expand Down

0 comments on commit b86e29f

Please sign in to comment.