2021-06-30 12:02:46 +00:00
|
|
|
#pragma once
|
2022-01-05 16:10:18 +00:00
|
|
|
#include "../lfrfid_app.h"
|
2021-06-30 12:02:46 +00:00
|
|
|
|
|
|
|
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:
|
2021-07-04 16:01:16 +00:00
|
|
|
static void save_callback(void* context);
|
2021-06-30 12:02:46 +00:00
|
|
|
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,
|
|
|
|
};
|
2022-05-06 13:37:10 +00:00
|
|
|
};
|