[FL-2514] Port iButton application to C (#1198)
* Initial C iButton app setup * Add more scenes * Add even more scenes * Add even more scenes again * More scenes... * Add key info scene * Add delete success scene * Use scene state to store internal data * Add parameter parsing * Add emulate scene * Add write scene * Add write success scene * Add Read scene * Add read success scene * Add exit confirm scene * Add retry confirm scene * Add CRC error scene * Add not key scene * Add read key menu scene * Rename some scenes * Refactor conditionals * Remove unneeded custom events * Remove the old iButton app * Correct formatting * Remove rogue comments and function prototypes * iButton: cleanup merge artifacts and fix warnings Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
22
applications/ibutton/scenes/ibutton_scene_select_key.c
Normal file
22
applications/ibutton/scenes/ibutton_scene_select_key.c
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "../ibutton_i.h"
|
||||
|
||||
void ibutton_scene_select_key_on_enter(void* context) {
|
||||
iButton* ibutton = context;
|
||||
|
||||
if(!ibutton_file_select(ibutton)) {
|
||||
scene_manager_search_and_switch_to_previous_scene(
|
||||
ibutton->scene_manager, iButtonSceneStart);
|
||||
} else {
|
||||
scene_manager_next_scene(ibutton->scene_manager, iButtonSceneSavedKeyMenu);
|
||||
}
|
||||
}
|
||||
|
||||
bool ibutton_scene_select_key_on_event(void* context, SceneManagerEvent event) {
|
||||
UNUSED(context);
|
||||
UNUSED(event);
|
||||
return false;
|
||||
}
|
||||
|
||||
void ibutton_scene_select_key_on_exit(void* context) {
|
||||
UNUSED(context);
|
||||
}
|
Reference in New Issue
Block a user