Skip to content

Commit

Permalink
Merge pull request #776 from korden32/korden32-patch-2
Browse files Browse the repository at this point in the history
LFRFID: add DEZ 10 display form for EM4100
  • Loading branch information
Leptopt1los authored Jul 4, 2024
2 parents 460b17e + 379d3c2 commit bd6b216
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/lfrfid/protocols/protocol_em4100.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,13 @@ void protocol_em4100_render_data(ProtocolEM4100* protocol, FuriString* result) {
uint8_t* data = protocol->data;
furi_string_printf(
result,
"FC: %03u\n"
"Card: %05hu (RF/%hhu)",
"FC: %03u Card: %05hu CL:%hhu\n"
"DEZ 10: %010lu",
data[2],
(uint16_t)((data[3] << 8) | (data[4])),
protocol->clock_per_bit);
protocol->clock_per_bit,
(uint32_t)((data[2] << 16) | (data[3] << 8) | (data[4]))
);
};

const ProtocolBase protocol_em4100 = {
Expand Down

0 comments on commit bd6b216

Please sign in to comment.