[FL-1371] Lfrfid app: add manufacturers to "Add manually" scene (#577)

* Lfrfid app: add manufacturers to "Add manually" scene
* Lfrfid app: fix submenu name size
This commit is contained in:
SG
2021-07-13 19:06:54 +10:00
committed by GitHub
parent 3571b58d0a
commit e31999b116
4 changed files with 29 additions and 3 deletions

View File

@@ -17,6 +17,22 @@ const char* lfrfid_key_get_type_string(LfrfidKeyType type) {
return "Unknown";
}
const char* lfrfid_key_get_manufacturer_string(LfrfidKeyType type) {
switch(type) {
case LfrfidKeyType::KeyEM4100:
return "Em-Marine";
break;
case LfrfidKeyType::KeyH10301:
return "HID";
break;
case LfrfidKeyType::KeyI40134:
return "Indala";
break;
}
return "Unknown";
}
bool lfrfid_key_get_string_type(const char* string, LfrfidKeyType* type) {
bool result = true;