File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub enum AuthMethod {
15
15
WAPIPersonal ,
16
16
}
17
17
18
- #[ derive( Debug , Deserialize ) ]
18
+ #[ derive( Deserialize ) ]
19
19
struct Wifi {
20
20
ssid : String ,
21
21
auth_method : AuthMethod ,
@@ -27,7 +27,7 @@ impl Debug for Wifi {
27
27
f. debug_struct ( "Wifi" )
28
28
. field ( "ssid" , & self . ssid )
29
29
. field ( "auth_method" , & self . auth_method )
30
- . field ( "password" , "****" )
30
+ . field ( "password" , & "****" )
31
31
. finish ( )
32
32
}
33
33
}
@@ -37,7 +37,7 @@ struct Api {
37
37
endpoint : String ,
38
38
}
39
39
40
- #[ derive( Debug , Default , Deserialize ) ]
40
+ #[ derive( Debug , Deserialize ) ]
41
41
struct Usb {
42
42
high_speed : bool ,
43
43
}
Original file line number Diff line number Diff line change 1
1
use anyhow:: { bail, Context } ;
2
+ use esp_idf_svc:: handle:: RawHandle ;
2
3
use esp_idf_svc:: partition:: { EspPartition , EspWlPartition } ;
4
+ use esp_idf_svc:: sys:: wl_handle_t;
3
5
4
6
#[ derive( Debug , Clone ) ]
5
7
pub struct SPIFlashConfig {
@@ -46,3 +48,11 @@ impl SPIFlashStorage {
46
48
Ok ( ( ) )
47
49
}
48
50
}
51
+
52
+ impl RawHandle for SPIFlashStorage {
53
+ type Handle = wl_handle_t ;
54
+
55
+ fn handle ( & self ) -> Self :: Handle {
56
+ self . wl_partition . as_ref ( ) . unwrap ( ) . handle ( )
57
+ }
58
+ }
You can’t perform that action at this time.
0 commit comments