@@ -8,21 +8,19 @@ void ibutton_scene_info_on_enter(void* context) {
8
8
const iButtonProtocolId protocol_id = ibutton_key_get_protocol_id (key );
9
9
10
10
FuriString * tmp = furi_string_alloc ();
11
+ FuriString * keynumber = furi_string_alloc ();
12
+
13
+ ibutton_protocols_render_brief_data (ibutton -> protocols , key , keynumber );
11
14
12
15
furi_string_printf (
13
16
tmp ,
14
- "\e#%s\n[%s]\e#" ,
17
+ "\e#%s\n[%s]\e#\n%s " ,
15
18
ibutton -> key_name ,
16
- ibutton_protocols_get_name (ibutton -> protocols , protocol_id ));
19
+ ibutton_protocols_get_name (ibutton -> protocols , protocol_id ),
20
+ furi_string_get_cstr (keynumber ));
17
21
18
22
widget_add_text_box_element (
19
- widget , 0 , 2 , 128 , 40 , AlignLeft , AlignTop , furi_string_get_cstr (tmp ), true);
20
-
21
- furi_string_reset (tmp );
22
- ibutton_protocols_render_brief_data (ibutton -> protocols , key , tmp );
23
-
24
- widget_add_string_multiline_element (
25
- widget , 0 , 16 , AlignLeft , AlignTop , FontSecondary , furi_string_get_cstr (tmp ));
23
+ widget , 0 , 2 , 128 , 64 , AlignLeft , AlignTop , furi_string_get_cstr (tmp ), true);
26
24
27
25
if (ibutton_protocols_get_features (ibutton -> protocols , protocol_id ) &
28
26
iButtonProtocolFeatureExtData ) {
@@ -32,6 +30,7 @@ void ibutton_scene_info_on_enter(void* context) {
32
30
33
31
view_dispatcher_switch_to_view (ibutton -> view_dispatcher , iButtonViewWidget );
34
32
furi_string_free (tmp );
33
+ furi_string_free (keynumber );
35
34
}
36
35
37
36
bool ibutton_scene_info_on_event (void * context , SceneManagerEvent event ) {
0 commit comments