7734fb4018
* Gui module byte-input: changed api * Gui: changed font height in multiline text according to guideline * Apps lrfid, nfc: changed send and receive icon * App lfrfid: fix text, fix scene switсh * Elements: multiline text framed, fix paddings * Gui: remove duplicate definition of elements_multiline_text_framed * App NFC: update byte_input callback signature * App subghz: fix text lines in capture scene * App subghz: position of the text is aligned with the guidelines and other scenes * App subghz: removed mockup Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
33 lines
668 B
C++
33 lines
668 B
C++
#pragma once
|
|
#include "../lfrfid-app.h"
|
|
|
|
class LfRfidAppSceneSaveData : public GenericScene<LfRfidApp> {
|
|
public:
|
|
void on_enter(LfRfidApp* app, bool need_restore) final;
|
|
bool on_event(LfRfidApp* app, LfRfidApp::Event* event) final;
|
|
void on_exit(LfRfidApp* app) final;
|
|
|
|
private:
|
|
static void save_callback(void* context);
|
|
uint8_t old_key_data[LFRFID_KEY_SIZE] = {
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
0xAA,
|
|
};
|
|
|
|
uint8_t new_key_data[LFRFID_KEY_SIZE] = {
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
0xBB,
|
|
};
|
|
}; |