[FL-1542], [FL-1603] Generate random name (#602)
* Lib: add random name library * Text_input: add default text clearing * All: rework all applications with new text_input API * Nfc: fix removing dev file on save_name scene enter * Lib: move all free radicals to toolbox and update API usage. Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "scene/lfrfid-app-scene-delete-success.h"
|
||||
|
||||
#include <file-worker-cpp.h>
|
||||
#include <path.h>
|
||||
#include <lib/toolbox/path.h>
|
||||
|
||||
const char* LfRfidApp::app_folder = "/any/lfrfid";
|
||||
const char* LfRfidApp::app_extension = ".rfid";
|
||||
@@ -27,9 +27,6 @@ LfRfidApp::LfRfidApp()
|
||||
, notification{"notification"}
|
||||
, text_store(40) {
|
||||
api_hal_power_insomnia_enter();
|
||||
|
||||
// we need random
|
||||
srand(DWT->CYCCNT);
|
||||
}
|
||||
|
||||
LfRfidApp::~LfRfidApp() {
|
||||
|
||||
Reference in New Issue
Block a user