mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-22 18:53:18 +00:00
cfcdff8346
* ibutton: add cli commands * ibutton/scene: add cli event send * ibutton: make separate scenes for cli commands * ibutton/scene: add timeout to cli scenes * ibutton: fix reading key data from cli * cli: add cli_delete_command to API * ibutton: delete cli command after app exit * cli: free allocated string Co-authored-by: あく <alleteam@gmail.com>
13 lines
No EOL
327 B
C++
13 lines
No EOL
327 B
C++
#pragma once
|
|
#include "ibutton-scene-generic.h"
|
|
#include "../helpers/key-emulator.h"
|
|
|
|
class iButtonSceneCliEmulate : public iButtonScene {
|
|
public:
|
|
void on_enter(iButtonApp* app) final;
|
|
bool on_event(iButtonApp* app, iButtonEvent* event) final;
|
|
void on_exit(iButtonApp* app) final;
|
|
|
|
private:
|
|
uint16_t timeout;
|
|
}; |