Fix (LF RFID -> Add manually) names again

remove N/A for PAC (and future protocols with N/A manufacturer)
This commit is contained in:
MX 2022-08-30 21:56:59 +03:00
parent 4d388f4bde
commit 6c7611c57e
No known key found for this signature in database
GPG Key ID: F1863A37E20BEF27

View File

@ -6,7 +6,8 @@ void LfRfidAppSceneSaveType::on_enter(LfRfidApp* app, bool need_restore) {
for(uint8_t i = 0; i < keys_count; i++) { for(uint8_t i = 0; i < keys_count; i++) {
if(strcmp( if(strcmp(
protocol_dict_get_manufacturer(app->dict, i), protocol_dict_get_manufacturer(app->dict, i),
protocol_dict_get_name(app->dict, i))) { protocol_dict_get_name(app->dict, i)) &&
strcmp(protocol_dict_get_manufacturer(app->dict, i), "N/A")) {
string_init_printf( string_init_printf(
submenu_name[i], submenu_name[i],
"%s %s", "%s %s",