Skip to content

Commit 90bdf47

Browse files
authored
New random file name API fix (#40)
1 parent 7b3170a commit 90bdf47

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

.catalog/changelog.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## 1.5
2+
- New random filename API
3+
## 1.4
4+
- Optimize crypto speed to fix compatibliity with Signo and OmniKey readers
5+
## 1.3
6+
- Show standard key instead of hex bytes when detected
7+
## 1.2
8+
- Sentinel bit remove
9+
## 1.1
10+
- Key dicts moved to app assets
11+
## 1.0
12+
- Initial release

application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=4 * 1024,
1212
fap_description="App to communicate with NFC tags using the PicoPass(iClass) format",
13-
fap_version="1.4",
13+
fap_version="1.5",
1414
fap_icon="125_10px.png",
1515
fap_category="NFC",
1616
fap_libs=["mbedtls"],

picopass_device.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040

4141
#define PICOPASS_APP_FOLDER ANY_PATH("picopass")
4242
#define PICOPASS_APP_EXTENSION ".picopass"
43+
#define PICOPASS_APP_FILE_PREFIX "Picopass"
4344
#define PICOPASS_APP_SHADOW_EXTENSION ".pas"
4445

4546
#define PICOPASS_DICT_KEY_BATCH_SIZE 10

scenes/picopass_scene_key_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "../picopass_i.h"
2-
#include <lib/toolbox/random_name.h>
2+
#include <lib/toolbox/name_generator.h>
33
#include <gui/modules/validators.h>
44
#include <toolbox/path.h>
55

scenes/picopass_scene_save_name.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "../picopass_i.h"
2-
#include <lib/toolbox/random_name.h>
2+
#include <lib/toolbox/name_generator.h>
33
#include <gui/modules/validators.h>
44
#include <toolbox/path.h>
55

@@ -16,7 +16,8 @@ void picopass_scene_save_name_on_enter(void* context) {
1616
TextInput* text_input = picopass->text_input;
1717
bool dev_name_empty = false;
1818
if(!strcmp(picopass->dev->dev_name, "")) {
19-
set_random_name(picopass->text_store, sizeof(picopass->text_store));
19+
name_generator_make_auto(
20+
picopass->text_store, sizeof(picopass->text_store), PICOPASS_APP_FILE_PREFIX);
2021
dev_name_empty = true;
2122
} else {
2223
picopass_text_store_set(picopass, picopass->dev->dev_name);

0 commit comments

Comments
 (0)