File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,12 @@ members = [
5
5
]
6
6
7
7
resolver = " 2"
8
+
9
+ [profile .dev ]
10
+ panic = " abort"
11
+
12
+ [profile .release ]
13
+ lto = false
14
+ codegen-units = 1
15
+ debug = true
16
+ opt-level = " z"
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ pub(self) mod bindings {
33
33
pub fn zemu_log ( _s : & str ) {
34
34
#[ cfg( zemu_sdk) ]
35
35
unsafe {
36
+ let _s = bolos_sys:: pic:: PIC :: new ( _s) . into_inner ( ) ;
36
37
let p = _s. as_bytes ( ) . as_ptr ( ) ;
37
38
bindings:: zemu_log ( p)
38
39
}
@@ -41,6 +42,7 @@ pub fn zemu_log(_s: &str) {
41
42
pub fn zemu_log_stack ( _s : & str ) {
42
43
#[ cfg( zemu_sdk) ]
43
44
unsafe {
45
+ let _s = bolos_sys:: pic:: PIC :: new ( _s) . into_inner ( ) ;
44
46
let p = _s. as_bytes ( ) . as_ptr ( ) ;
45
47
bindings:: zemu_log_stack ( p)
46
48
}
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ impl UIBackend<KEY_SIZE> for NanoSBackend {
73
73
}
74
74
75
75
fn message_buf ( & self ) -> Self :: MessageBuf {
76
- ArrayString :: from_byte_string ( & [ 0 ; MESSAGE_SIZE ] ) . expect ( "0x00 is not valid utf8?" )
76
+ let init = PIC :: new ( & [ 0 ; MESSAGE_SIZE ] ) . into_inner ( ) ;
77
+ ArrayString :: from_byte_string ( init) . expect ( "0x00 is not valid utf8?" )
77
78
}
78
79
79
80
fn split_value_field ( & mut self , message_buf : Self :: MessageBuf ) {
You can’t perform that action at this time.
0 commit comments