1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

Add DEZ10

by realcatgirly

https://github.com/Next-Flip/Momentum-Firmware/pull/418/files
This commit is contained in:
MX
2025-06-25 02:50:18 +03:00
parent 98a4477999
commit 0b53be5cbd
2 changed files with 5 additions and 4 deletions

View File

@@ -41,8 +41,7 @@ void lfrfid_scene_read_success_on_enter(void* context) {
furi_string_cat_printf(display_text, "\n%s", furi_string_get_cstr(rendered_data)); furi_string_cat_printf(display_text, "\n%s", furi_string_get_cstr(rendered_data));
furi_string_free(rendered_data); furi_string_free(rendered_data);
widget_add_text_box_element( widget_add_text_scroll_element(widget, 0, 16, 128, 35, furi_string_get_cstr(display_text));
widget, 0, 16, 128, 52, AlignLeft, AlignTop, furi_string_get_cstr(display_text), true);
widget_add_button_element(widget, GuiButtonTypeLeft, "Retry", lfrfid_widget_callback, app); widget_add_button_element(widget, GuiButtonTypeLeft, "Retry", lfrfid_widget_callback, app);
widget_add_button_element(widget, GuiButtonTypeRight, "More", lfrfid_widget_callback, app); widget_add_button_element(widget, GuiButtonTypeRight, "More", lfrfid_widget_callback, app);

View File

@@ -374,11 +374,13 @@ void protocol_em4100_render_data(ProtocolEM4100* protocol, FuriString* result) {
furi_string_printf( furi_string_printf(
result, result,
"FC: %03u Card: %05hu CL:%hhu\n" "FC: %03u Card: %05hu CL:%hhu\n"
"DEZ 8: %08lu", "DEZ 8: %08lu\n"
"DEZ 10: %010lu",
data[2], data[2],
(uint16_t)((data[3] << 8) | (data[4])), (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]))); (uint32_t)((data[2] << 16) | (data[3] << 8) | (data[4])),
(uint32_t)((data[1] << 24) | (data[2] << 16) | (data[3] << 8) | (data[4])));
} }
const ProtocolBase protocol_em4100 = { const ProtocolBase protocol_em4100 = {