File tree 2 files changed +10
-4
lines changed
2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -48,18 +48,18 @@ static void _show_reset_label(bool status)
48
48
}
49
49
#endif
50
50
51
- #if !defined(TESTING )
52
- static void _ble_reset (void )
51
+ void reset_ble (void )
53
52
{
53
+ #if !defined(TESTING )
54
54
struct ringbuffer uart_queue ;
55
55
uint8_t uart_queue_buf [64 ];
56
56
ringbuffer_init (& uart_queue , & uart_queue_buf [0 ], sizeof (uart_queue_buf ));
57
57
da14531_reset (& uart_queue );
58
58
while (ringbuffer_num (& uart_queue )) {
59
59
uart_poll (NULL , 0 , NULL , & uart_queue );
60
60
}
61
- }
62
61
#endif
62
+ }
63
63
64
64
void reset_reset (bool status )
65
65
{
@@ -98,7 +98,7 @@ void reset_reset(bool status)
98
98
99
99
// The ble chip needs to be restarted to load the new secrets.
100
100
if (memory_get_platform () == MEMORY_PLATFORM_BITBOX02_PLUS ) {
101
- _ble_reset ();
101
+ reset_ble ();
102
102
}
103
103
104
104
reboot ();
Original file line number Diff line number Diff line change 17
17
18
18
#include <stdbool.h>
19
19
20
+ /**
21
+ * Restarts the Bluetooth chip. This also means it will re-load the Bluetooth firmware from SPI
22
+ * memory.
23
+ */
24
+ void reset_ble (void );
25
+
20
26
/**
21
27
* Resets the device:
22
28
* - Updates secure chip KDF keys.
You can’t perform that action at this time.
0 commit comments