|
39 | 39 | void account_enabled(); |
40 | 40 | void shortcut_enabled(); |
41 | 41 |
|
| 42 | +void h_initialize(); |
42 | 43 | static void h_expert_toggle(); |
43 | 44 | static void h_expert_update(); |
44 | 45 | static void h_review_loop_start(); |
@@ -108,6 +109,21 @@ const ux_flow_step_t *const ux_idle_flow [] = { |
108 | 109 | FLOW_END_STEP, |
109 | 110 | }; |
110 | 111 |
|
| 112 | +/////////// |
| 113 | +UX_STEP_CB_INIT(ux_menu_init_flow_2_step, bn, NULL, h_initialize(), { "Click to", "Initialize", }); |
| 114 | +UX_STEP_NOCB(ux_menu_init_flow_4_step, bn, { "Developed by:", "Zondax.ch", }); |
| 115 | + |
| 116 | +const ux_flow_step_t *const ux_menu_initialize [] = { |
| 117 | + &ux_idle_flow_1_step, |
| 118 | + &ux_menu_init_flow_2_step, |
| 119 | + &ux_idle_flow_3_step, |
| 120 | + &ux_menu_init_flow_4_step, |
| 121 | + &ux_idle_flow_5_step, |
| 122 | + &ux_idle_flow_6_step, |
| 123 | + |
| 124 | + FLOW_END_STEP, |
| 125 | +}; |
| 126 | + |
111 | 127 | /////////// |
112 | 128 |
|
113 | 129 | UX_STEP_NOCB(ux_message_flow_1_step, pbb, { &C_icon_app, viewdata.key, viewdata.value,}); |
@@ -330,6 +346,19 @@ void view_idle_show_impl(__Z_UNUSED uint8_t item_idx, char *statusString) { |
330 | 346 | ux_flow_init(0, ux_idle_flow, NULL); |
331 | 347 | } |
332 | 348 |
|
| 349 | +void view_initialize_show_impl(__Z_UNUSED uint8_t item_idx, char *statusString) { |
| 350 | + if (statusString == NULL ) { |
| 351 | + snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", "Not Ready"); |
| 352 | + } else { |
| 353 | + snprintf(viewdata.key, MAX_CHARS_PER_KEY_LINE, "%s", statusString); |
| 354 | + } |
| 355 | + |
| 356 | + if(G_ux.stack_count == 0) { |
| 357 | + ux_stack_push(); |
| 358 | + } |
| 359 | + ux_flow_init(0, ux_menu_initialize, NULL); |
| 360 | +} |
| 361 | + |
333 | 362 | void view_review_show_impl(unsigned int requireReply){ |
334 | 363 | review_type = requireReply; |
335 | 364 | h_paging_init(); |
|
0 commit comments