diff --git a/plugin_wiegand.c b/plugin_wiegand.c index 6e2b86d..bc84299 100644 --- a/plugin_wiegand.c +++ b/plugin_wiegand.c @@ -6,7 +6,9 @@ static int wiegand_format_count(uint8_t bit_length, uint64_t bits) { UNUSED(bit_length); UNUSED(bits); - return 0; + + FURI_LOG_I(PLUGIN_APP_ID, "count"); + return 1; } static void wiegand_format_description( @@ -14,10 +16,11 @@ static void wiegand_format_description( uint64_t bits, size_t index, FuriString* description) { + FURI_LOG_I(PLUGIN_APP_ID, "description %d", index); UNUSED(bit_length); UNUSED(bits); - UNUSED(index); - UNUSED(description); + + furi_string_cat_printf(description, "[%i] FC: CN:", index); } /* Actual implementation of app<>plugin interface */ diff --git a/seader.c b/seader.c index eb9010e..4cbd777 100644 --- a/seader.c +++ b/seader.c @@ -105,7 +105,7 @@ Seader* seader_alloc() { for(uint32_t i = 0; i < plugin_count; i++) { const PluginWiegand* plugin = plugin_manager_get_ep(seader->plugin_manager, i); FURI_LOG_I(TAG, "plugin name: %s", plugin->name); - if(strcmp(plugin->name, PLUGIN_APP_ID) == 0) { + if(strcmp(plugin->name, "Plugin Wiegand") == 0) { // Have to cast to drop "const" qualifier seader->plugin_wiegand = (PluginWiegand*)plugin; }