lfrfid_app_scene_save_data.h 669 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include "../lfrfid_app.h"
  3. class LfRfidAppSceneSaveData : public GenericScene<LfRfidApp> {
  4. public:
  5. void on_enter(LfRfidApp* app, bool need_restore) final;
  6. bool on_event(LfRfidApp* app, LfRfidApp::Event* event) final;
  7. void on_exit(LfRfidApp* app) final;
  8. private:
  9. static void save_callback(void* context);
  10. uint8_t old_key_data[LFRFID_KEY_SIZE] = {
  11. 0xAA,
  12. 0xAA,
  13. 0xAA,
  14. 0xAA,
  15. 0xAA,
  16. 0xAA,
  17. 0xAA,
  18. 0xAA,
  19. };
  20. uint8_t new_key_data[LFRFID_KEY_SIZE] = {
  21. 0xBB,
  22. 0xBB,
  23. 0xBB,
  24. 0xBB,
  25. 0xBB,
  26. 0xBB,
  27. 0xBB,
  28. 0xBB,
  29. };
  30. };